Page 155 of 177
Re: Coding Help
Posted: Sun Sep 24, 2023 2:59 pm
by ArtūrasF
Thank you very much sir.
Re: Coding Help
Posted: Thu Sep 28, 2023 8:32 am
by doprotonu
EA INSTEAD OF SL.
I would like to automate what I do manually. I will put the attached indicator on the chart of the selected pair. When the indicator sends an alert, I close all positions on the pair. The EA must not open any positions, only close all positions on the pair.
Re: Coding Help
Posted: Wed Oct 04, 2023 12:38 am
by Dego
Can someone make Toggle borders.mq4 so that the button would be in top left corner?
attach/file/3421882
Re: Coding Help
Posted: Wed Oct 04, 2023 7:17 am
by Dego
Dego wrote: Wed Oct 04, 2023 12:38 am
Can someone make Toggle borders.mq4 so that the button would be in top left corner?
attach/file/3421882
no need anymore
Re: Coding Help
Posted: Tue Nov 21, 2023 10:17 pm
by DaffyTaffy
Hello everyone. I am trying to make an ADR indicator similar to Xard's but for mt5. There are no compilation errors and everything seems to be fine but nothing is showing when loaded on the chart.
"no indicator plot defined for indicator" is the error message.
Re: Coding Help
Posted: Wed Nov 22, 2023 7:18 am
by mrtools
DaffyTaffy wrote: Tue Nov 21, 2023 10:17 pm
Hello everyone. I am trying to make an ADR indicator similar to Xard's but for mt5. There are no compilation errors and everything seems to be fine but nothing is showing when loaded on the chart.
"no indicator plot defined for indicator" is the error message.
Found this version, not sure if it will help though.
Re: Coding Help
Posted: Fri Nov 24, 2023 11:49 pm
by DaffyTaffy
mrtools wrote: Wed Nov 22, 2023 7:18 am
Found this version, not sure if it will help though.
This is still helpful. It shows the daily open lines unlike in my previous code. I can use it to see what I did wrong and I'll upload it here if I make some headway. Thanks Mr.Tools.
Re: Coding Help
Posted: Thu Dec 07, 2023 1:00 am
by uradello
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?
Re: Coding Help
Posted: Mon Dec 11, 2023 8:53 am
by DaffyTaffy
mrtools wrote: Wed Nov 22, 2023 7:18 am
Found this version, not sure if it will help though.
Hi Mr.Tools. Here's the MT5 version of the ADR indicator.
Am I allowed to share the source code for my MT5 version? I noticed some code in the original file for protecting the name from being changed so I'm unsure.
Regards,
DaffyTaffy
XARD: Yes, by all means... share:-)
Re: Coding Help
Posted: Mon Dec 11, 2023 10:39 am
by mrtools
DaffyTaffy wrote: Mon Dec 11, 2023 8:53 am
Hi Mr.Tools. Here's the MT5 version of the ADR indicator.
Am I allowed to share the source code for my MT5 version? I noticed some code in the original file for protecting the name from being changed so I'm unsure.
Regards,
DaffyTaffy
Probably check with Xard.