Download MetaTrader 5

basic backtesting

To add comments, please log in or register
Forex Trader
114299
Forex Trader  
this code is for prorealtime but i imagine mt4 would not be that much different.

i'm trying to set up a backtest where the stop loss is set to zero after the price goes above 50 pips. maybe with your computer know-how you could get the answer here's what i got so far but it doesn't work

once x = longonmarket and x and ((high - entryquote) > .0050

if longonmarket and x and (low - entryquote < 0) then
sell 20 %capital at market
endif

what do you think i'm doing wrong?
To add comments, please log in or register