Take Profit is Break Even plus 50
1 replies
10231946
9 years ago #112915
Hi, I have a problem.
I want to write this EA:
EMA 2 crosses over EMA 100 – then buy long with magic number 1000
if loss is more minus 200 – then buy again with magic number 1001
if loss is more minus 400 – then buy again with magic number 1002
if loss is more minus 600 – then buy again with magic number 1003
and so on…
Proft Take PT should always be Break Even plus 60 pips.
How do I write this function Proft Take = BreakEven plus 50 pips?
Many thanks for your answer Jochen
Mark Fric
9 years ago #127691
this is simple, all your conditions can be easily specified using conditions in EA Wizard.
I’m attaching simple uncompleted example.
Mark
StrategyQuant architect
Viewing 1 replies (of 1 total)