Attachments forums

List of attachments posted on this forum.


All files on forums: 136004

Re: Coding Help

uradello, Thu Dec 07, 2023 12:59 am

Hi everyone, several months ago I wrote in the MT5 indicators session but now I think it's right to write here.

unfortunately after many months of work, my friend was unable to solve the problem that arose again.
I will briefly explain how the EA works: every time the cross up occurs between the SMA 3 and the SMA 15, the EA buys 0.01 and puts a TAKE PROFIT at 10 pips from the purchase price.
if it goes down by 5 pips he buys 0.01 and puts a TAKE PROFIT at 10 pips from the average load price.
If it drops another 5 pips, it buys 0.02 and puts a TAKE PROFIT always at 10 pips from the average load price.
this procedure occurs for a total of 6 entries and therefore in the end I will have 0.32 lots.
When the EA runs on the demo account it is perfect, when it runs on the real account, it does not set the TAKE PROFIT correctly, for example it does not read the price of the third entry

the account was opened at FP Markets and is a hedging account.
obviously the intersection of the averages and the number of pips is fake... I'm interested in whether the EA makes the 6 entries correctly and above all that it puts the right take profit.
thank's in advance

another thing: how do you run the tester in real time?
All files in topic