Download MetaTrader 5

basic backtesting

To add comments, please log in or register
Deposit to your account in any convenient way. There are 4 of them here!
Forex Trader
114257
Forex Trader 2010.03.16 12:18 
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