Re: Coding Help
1542EA 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.
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
1543Can someone make Toggle borders.mq4 so that the button would be in top left corner?
attach/file/3421882
attach/file/3421882
Re: Coding Help
1544no need anymoreDego 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
Re: Coding Help
1545Hello 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.
"no indicator plot defined for indicator" is the error message.
Re: Coding Help
1546Found this version, not sure if it will help though.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.
- These users thanked the author mrtools for the post (total 2):
- DaffyTaffy, Ricstar_8
Re: Coding Help
1547This 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.
- These users thanked the author DaffyTaffy for the post:
- mrtools
Re: Coding Help
1548Hi 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?
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
1549Hi 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:-)
- These users thanked the author DaffyTaffy for the post (total 3):
- mrtools, RodrigoRT7, DaveTrader
Re: Coding Help
1550Probably check with Xard.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