Automatic higher balance-goal after profit
-
Hi!
I have a problem with making my EA..I hope I can describe it well...
I already made an EA that opened trades on some EMA and PSAR conditions and when reached the goal-balance (for example make 10€ daily) it closes positions...if the trend changes, the trade is closed and the next trade adds on lots (some tipe of martingale but not doubling). On the next day (for example at 9 am) the EA sets a new goal - balance+10€ and it starts trading again. But now I would like the EA working all day - so what blocks do I have to use so the EA looks at last trades (even if they are from last day -if I trade from 9am till 8pm for example); if last trade was a loser then it works - the EAopens new trade with more lot..but I don't know how to change the EA so when the last trade is closed in profit, the EA should right away set a new goal - reach the balance from before +10€ and then closes the trade when equity reaches this new goal? Please help me
-
I'm not sure I understand the whole question, but if you just want to check the profit of the last trade, you can use:
- "Check profit (last closed)"
- or "For each Closed Trade" (set Not more than n history trades to 1) and then any other pink block, for example "check profit"