I attach some code in which I want to add Stops & Profit Targets for back testing.
Since I am completely new to backtesting I was only able to add the instruction to enter a trade when conditions are met. I have read the tutorials but the examples there only deal with bands etc.
What I want to try is to enter a fix Stop (say 40 pips) from entry price and also a fix Profit Target (say 60 pips ) from Entry Price.
I know this would only be a few short lines of code but I would appreciate help in this regard.
As always I would be greatfull.
Regards
Since I am completely new to backtesting I was only able to add the instruction to enter a trade when conditions are met. I have read the tutorials but the examples there only deal with bands etc.
What I want to try is to enter a fix Stop (say 40 pips) from entry price and also a fix Profit Target (say 60 pips ) from Entry Price.
I know this would only be a few short lines of code but I would appreciate help in this regard.
As always I would be greatfull.
Regards