"put the name into a comment to see what is returned"
I didn't got it bro.... can you simplify it..
"put the name into a comment to see what is returned"
I didn't got it bro.... can you simplify it..
Case - :
The EA should count every modification / creation / close of a trade. once these activity limit reached to 2000m then the EA should stop working until the next day.


Case - :
The EA is creating orders / Modify orders / Close orders (including trailing) using OnTimer / OnTick / OnTrade Events.
ex -
counter 01 - 100
counter 02 - 1300
counter 03 - 600
total counts = 2000
like that.
How should I use blocks to do this..?
I want to know my client name (my name for broker) to set it for this block. Where do I can find my name ?.

Case - :
The EA should identify the last closed trade is either the profit or loss. If it was a loss,
The EA should store the value of the loss (in money) somewhere. and trade using doubled lot size than user entered in the inputs of EA.
Then EA should check the sum of the previous closed profit trades from the last lost trade. (the trade we stored at beginning to compare the recovery process).
If the SUM of profits trades (from the last loss) is greater than the last lost trade, (which means the lost $$ has been recovered) then turn back to normal lot sizes.
actually I don't know how to use variables for this. If you guys can help me with this, I can fast learn it.
Thanks a lot brother... now I know how to create and use enumeration because of you... thanks a lot...
No, I mentioned that the value we assign to the "TM" (or any name) always should be a value of the enumeration we created. is it?.
I also curious to know the name (data type) of the "Trading_Model" (in this case) we assigned in the data type field.
@jstap Bro... thank you... Finally, I got it... I got one last question.
Should we assign value for "TM" here? is there any effect "TM" value being different from the "enum" values...?
A recap - :
tests :
I tested it, there is no dropdown in inputs of EA.
I have no idea what's wrong here.
So, the winner is OnTick....
I want to create like this type of dropdown for my inputs brother.

Remove "once per bar". I'll solve the issue
https://fxdreema.com/shared/3bLzDAAie
Compilation error occurs.
@wegbereider that's it. there should be some other criteria's as well. since I'm always makes EA's out of candlesticks patterns, I understood that candlesticks alone won't make a profitable strategy. there should be some additional confirmations as well.
there should be a logical method bro, but right now my knowledge is not enough to answer this question. it would be better to repost this question.