thanks! i don't want modify take profit. but anyway i found my way using for each trade block.. thank you so much 
Latest posts made by clacky
-
RE: break even point after negative valueposted in Questions & Answers
-
break even point after negative valueposted in Questions & Answers
hi there!
it's possibile to set the break even point at open price , when the market goes under 10 pips ?
(there is only with positive value option)
i tried with -10 but dosen't work -
check current symbol, then modify a variable ..posted in Questions & Answers
hi, i want to set my ea to modify a variable depending off the current market ( in multimarket backtest )
any ways ? -
RE: modify a variable while earnigposted in Questions & Answers
@trader-philipps
anyway the last part of your reply seems smart and cleaver ... i will try it, thanks !
ok mybe i figured it out.. let me check -
RE: modify a variable while earnigposted in Questions & Answers
@trader-philipps said in modify a variable while earnig:
If you have clipping levels for lot size,
ok, there we are, i was sure that my logic wasn't good, i just asking you guys wich logic to use in this case ...
i'm looking for a strategy where :when the EA find a profit, it ll change a variable. this is hard for me couse i have multiple trades, some loses,some wins, but when the wins are more than 50 $, then do this hard action.
then reset, and start again the logic .
i'm a beginner, i'm not english... have patience please -
RE: modify a variable while earnigposted in Questions & Answers
https://fxdreema.com/shared/0eOA2Rd0c
i'm pretty sure that i wrong with formula blocks... ok let' say :
1.
gross profit- gross loss = profit
profit should be the difference between profit and loss, so if lose 500 and i gain 550 then the profit will be 50
2.
initial deposit+ profit = baprofit
so if i start with 10000 , then baprofit will be 10050 ...
3.
equity+ baprofit
i gues, equity is the balance+profitable trades ...
so if the open trade is profitable , and it rise up the equity to 1050 , then modify a variable ....
that's corret ? -
RE: modify a variable while earnigposted in Questions & Answers
couse, my problem is that i can tell to modify the variable every 50 $ of earn , but in case of loss, it take the old balance- loss.
es
start with 1000
at 1050, modify variabile (so after + 50$)
in case of loss, balance go lower to 950 ..
so the EA set the target at 1000 (950+50)
another loss? --> 950 (900+50) .............. -
RE: modify a variable while earnigposted in Questions & Answers
i tried to use lower id and move into trade ... but nothing, dosen t work... i m not sure that the formula blocks are set in the corret way... if you have to write an EA that works in that way, how can you set it up ?
-
RE: modify a variable while earnigposted in Questions & Answers
@l-andorrĂ
[0_1568838591372_test.mq4]
link text
i tried this but dosen't work.. can you help me out please ?
in this case i want that after 49 earned , modify a variable