正在加载...
继续访问Myfxbook.com
继续访问Myfxbook.com
登录
注册
Open an account with FOREX.com
FX Tools:
经济日历
Interest Rates
FX Calculators
新闻
价差
情绪
外汇热力图
相关性
Market Hours
首页
fxftw
帖子
分享
分享此页面!
帖子作者:
fxftw
MT4 EA drawdown per day
在
编程
中
Feb 03, 2017 at 07:51
Sketching this out, maybe something like:--------------------extern int defaultMaxOrders = 1;extern double dailyLossLimit = 0.95;extern double dailyProfitLimit = 1.05;int today;double dailyEquity;double dailyProfit;bool chillMode = false;void newDay() { today = TimeDayOfWeek(TimeCurrent()); dailyEquity = AccountEquity(); chillMode = false;}void OnInit() { today = TimeDayOfWeek(TimeCurrent()); dailyProfit = 1.0; dailyEquity = AccountEquity();}void OnTick() { if (today != TimeDayOfWeek(TimeCurrent())) { newDay(); } else { if (AccountEquity() / dailyEquity > dail...
MT4 EA drawdown per day
在
编程
中
Feb 02, 2017 at 09:09
Lets say I have an EA applied to an H1 chart.How would I calculate the drawdown for that day?Eg.On Tick: If (Today is a New Day) then dailyDrawdown is 100.0 thisMorningsWorth = netAssetValue() Else dailyDrawdown = netAssetValue() / thisMorningsWorth End If (dailyDrawdown < 0.95) then chillForToday() Else MakeThoseTrades() EndWhat's the best way to set this sort of thing up?
Auto-trading with macOS (or linux?)
在
新手交易员
中
Feb 01, 2017 at 07:25
@stian Wow. A 0.0 spread? Man, a lot has changed since I was last in the forex game.
Auto-trading with macOS (or linux?)
在
新手交易员
中
Jan 31, 2017 at 13:22
I suppose in the case of closing multiple orders, I could relay a message from MT4 with libcurl to hit the v20 server with a "Close All" type message if i wanted to close a position, or hit it with the array to run through.Right now, I rarely get more than 8 trades open at once across any given pair. *500?* This is a much different strategy than I've played with, and something I'll have to experiment with. Thanks for the tips!
Auto-trading with macOS (or linux?)
在
新手交易员
中
Jan 31, 2017 at 07:11
I've experimented with the Oanda live streaming API with Node.js (maybe a year ago) and their v20 python setup just a few days ago. This was where I started out before going down the MT4 rabbit hole. In a lot of ways, it feels like I'm reinventing the wheel when working directly through the Oanda API rather than something a bit more extendable and easy to backtest / experiment with like MT4. Perhaps once I have a strategy running live that I like I can port it over.MT5 looks like where I'd like to be, maybe further down the road.
Backtesting -- which optimization limits, timeframes / periods to test?
在
编程
中
Jan 30, 2017 at 08:07
I'm just a few days into playing with MT4 scripting. I've integrated in the Dukascopy historical tick data with my brokers spreads for more accurate strategy test modeling. The files are *huge* and I believe there's a hard 4GB limit per file, which puts a limit ~2yrs of data at a time.I'm currently testing against M15, M30, H1, and H4 data across a few currency pairs with duplicate ticks filtered from the data, and I'm testing from 2015/1/1 through 2017/1/1 with a Dropdown limit of 30%, optimizing for final balance. Is this a good rough starting point?
Renko Charts, Multi-timeframe charts, and Volume bars in MT4
在
新手交易员
中
Jan 30, 2017 at 08:07
I'd like to have the option to visualize a few unique charts in MT4.Renko:http://i.imgur.com/M7vD8xi.gifhttp://i.imgur.com/QZXGRz0.gifMulti-timeframe:http://i.imgur.com/5AGN0cf.pngVolume bars:http://i.imgur.com/tw8dyr1.pngI'm also interested in charts like Martin Cole's PAT system:http://i.imgur.com/zySs4Fv.jpgAre there any popular (free?) versions of these sorts of indicators for MT4?
Auto-trading with macOS (or linux?)
在
新手交易员
中
Jan 30, 2017 at 08:06
Got it -- I downloaded MT4 through my broker and got that to launch with PlayOnMac (similar to POL for linux) through Wine. I downloaded VirtualBox and installed Vista, then used Tickstory to generate a settings file for my broker and downloaded the historical data to my Shared Folder back on the Mac-side. For now, I'm just experimenting with M15, M30, H1, and H4 data across a few pairs. I installed Mono on Wine and was able to get Tickstory on the mac-side to Launch MT4 through with the historical data from tickstory. I ran a few tests and I'm getting 99.9% modeling quality. Kind ...
Best forums for discussing beginner-friendly MQL4 scripting?
在
编程
中
Jan 29, 2017 at 08:16
I'm trying to devise a way to calculate a Breakeven point across multiple orders, then update my orders once the threshold has been crossed across the multiple pair average.I would also like to calculate a Take Profit across multiple orders, then update my take profit when new orders are entered.This is something I intuitively do while manually trading, but I'm having some difficulty typing it out.How would you break this down in pseudo-code? Are there some beginner-friendly MQL4 scripting forums to discuss this sort of thing?
Just started working on MQL4 scripting -- Any help would be great!
在
编程
中
Jan 29, 2017 at 07:20
I just downloaded a copy of MetaTrader4 and have been going through the API and playing with different ideas and scripts.I have a background in iOS dev (objective-C / Swift) and Web Dev via Javascript / PHP / Python.In the tester, it's pretty annoying so far. I've blown the last few days just hammering it with unprofitable scripts. It's amazing how easy it is to make an unprofitable EA and how difficult it is to dial in the smallest profitable strategy. :-D I'm running into small errors that I'm not quite understanding (eg. unmatched data error volume limit...?)I'm ...
Auto-trading with macOS (or linux?)
在
新手交易员
中
Jan 26, 2017 at 08:38
I primary use macOS at home and linux for work. I was looking at playing with Oanda's API and getting to that with python or swift, but the more I look into it, the less ideal this seems.Are there any decent software solutions for developing and backtesting autotrading strategies with these environments?
Largest average PIP profit target for long trades?
在
新手交易员
中
Jan 26, 2017 at 08:38
I'm going to try switching up my strategy, which has largely been volatility-based with market orders and required eyes on the screen all day, to something more along the lines of set-it-and-forget-it and limit order based (which I might be able to automate down the road.)What is the largest PIP profit that I might want to target on my positions for the week-month long timeframe for balancing opportunity : risk?
You have an Ad Blocker!
Myfxbook is a site supported by advertisements. Here are two ways for you to continue browsing:
Ad Free Subscription
或
Disable your Ad Blocker
Already subscribed?
登录
您没有登录
此功能仅适用于注册会员。
注册是免费的,只需不到一分钟。
点击注册按钮继续。
除非您已经是会员并享受我们的服务,否则只需登录。
Keep up to date with the markets
Enable notifications to receive real-time important market updates:
经济日历
外汇新闻
You can disable notifications at any time from your browser.
Unblock Notifications
You've blocked browser notifications for Myfxbook.com. Please enable it:
You can disable notifications at any time from your browser.
以前
共识
实际