- Search Metals Mine
-
Ronald Raygun replied Jun 3, 2009Comment() Alert() are common ways to do it. But in all seriousness, debugging in MT4 is crap
Feedback on MT4 programming?
-
Ronald Raygun replied Jun 3, 2009Did you see how I filtered trades in the order search code? I put my exit and trade management criteria in there.
Any easy way to make the next trade dependant on previous trades outcome?
-
Ronald Raygun replied Jun 2, 2009Can you put up the whole code? I'm looking specifically for the "IsTrade" variable.
Help with Lot sizing
-
Ronald Raygun replied Jun 1, 2009In the account history, is it entering one trade, then closing it, then entering another trade, then closing it, etc? Or are there multiple trades open at one time?
Help with Lot sizing
-
Ronald Raygun replied Jun 1, 2009I'll assume you have some form of a system to start with, no?
Need help with divergence system
-
Ronald Raygun replied May 31, 2009The 'for' loop allows me to be able to recover in the event the EA is reinitialized (power outage, system reset, etc). I can have the EA take a trade, remove the EA, then reattach the EA (with the same settings of course), and the EA can pick up ...
Any easy way to make the next trade dependant on previous trades outcome?
-
Ronald Raygun replied May 31, 2009Instead of checking by OrderProfit... if(OrderClosePrice() == OrderStopLoss()) CloseStatus = "Loss"; if(OrderClosePrice() == OrderTakeProfit()) CloseStatus = "Win"; This snippet here: int i=OrdersHistoryTotal(); OrderSelect(i, ...
Any easy way to make the next trade dependant on previous trades outcome?
-
Ronald Raygun replied May 31, 2009Trades For every dollar you lose, you make "x" dollars. If it's less than 1, the EA lost money. Not directly. The way you do it is to save the backtest as a report. Then get a program to parse the report into .csv
MT4 Backtest questions
-
Ronald Raygun replied May 30, 2009Look at the maximum drawdown of the three other data points. Do they also line up in a linear fashion? Graph these two lines: y = (1/2)x+10 y = x^2 One line is curved, and the other line is straight. When you start out, you'll see that y = x^2 is ...
MT 4 strategy tester question
-
Ronald Raygun replied May 30, 2009Maybe it's me, but you're increasing the lot size and account balance in a linear fashion when the lot size grows exponentially.
MT 4 strategy tester question
-
Ronald Raygun replied May 30, 2009More complex patterns like head and shoulders or cup and handle are notoriously hard to mathematically model, which is probably why those automated stock screeners don't have them.
Automated Stock Screeners?
-
Ronald Raygun replied May 30, 2009Does the lot size change during the backtest?
MT 4 strategy tester question
-
Ronald Raygun replied May 29, 2009OrderLots() Returns amount of lots for the selected order. So, the current value of those lots.
Contract Error Question
-
Ronald Raygun replied May 29, 2009The range is from 7-9 EDT/EST. After 9, you can start trading.
7am-9am Big Dog USD Breakout Strategy
-
Ronald Raygun replied May 29, 2009Not what I meant. It could be that it was only during the london session, or maybe while this guy was awake. (I can't trade well in my sleep).
5SMA cross 20EMA - EA Required
-
Ronald Raygun replied May 29, 2009Hope you know what you're doing. url
5SMA cross 20EMA - EA Required