thanks! i don't want modify take profit. but anyway i found my way using for each trade block.. thank you so much 
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 -
modify a variable while earnigposted in Questions & Answers
hi again ,
i would like to know how to modify a variable after a gain
explain:
my ea start with 1000, after a close mi balance is 1050 , then modify a variabile ...
after 2 close mi balance is 1100 , then modify a variable.. ecc.......
so every 50 money modify a v .. that's possibile ?
in case of loss ... wait until the balance is X+50 -
RE: restart a strategyposted in Questions & Answers
thanks for the reply,
not at all ... just trying to do it... do you have some advise for me ? -
restart a strategyposted in Questions & Answers
hi, there is a way to restart a strategy:
es ..
after a close restart the strategy from beggining,
restart also
group number,
history trades,
profit,
loss
ecc... like start a new EA again -
RE: longs count and short count by group AND check trade count with multiple number in the same blockposted in Questions & Answers
ok, look what i found out:
just have one variable, BuyCount ..
if buy then buycount + 1
if sell then buycount-1
so after a buy, BC will be 1 , after sell BC will be 0.
i want do this:
if BC equal to 0, then buy
if BC is equal to 1, the sell -
RE: longs count and short count by group AND check trade count with multiple number in the same blockposted in Questions & Answers
amazing... i miss the last step ... if i want say:
if buycount is equal to 1,3,5,7,9,11 ... then buy -
longs count and short count by group AND check trade count with multiple number in the same blockposted in Questions & Answers
hi, how can i get long/short count of a group of trades ? i can do that with condition block but it dosen't has the group function ..
and also i need to check trade count by multiple number .. es 1,3,5 ecc... i can do it only using N blocks..