A lot of errors inside the code .... Looks like you have no idea how to code yourself and copied this from somewhere
Like to know what values you did use in the backtest the coding isn't showing us
Are they the same as you have
extern int MagicNumber = 778 ; extern double Lots = 0.1 ; extern double StopLoss = 0 ; extern double TakeProfit = 0 ; extern int TrailingStop = 0 ; extern int Slippage = 3 ;
inside the code or did you change it ???
in that case if you didn't change
OrderSelect(result,SELECT_BY_TICKET); OrderModify(OrderTicket(),OrderOpenPrice(),NormalizeDouble(TheStopLoss,Digits),NormalizeDouble(TheTakeProfit,Digits),0,Green);
will this lead to a result ??
A lot of errors inside the code .... Looks like you have no idea how to code yourself and copied this from somewhere
Like to know what values you did use in the backtest the coding isn't showing us
Are they the same as you have
inside the code or did you change it ???
in that case if you didn't change
will this lead to a result ??
Hi Devries !
Thanks for your reply. Yes I changed the SL, TP and TS while I was posting code here. You are right I have no idea about coding. So what want to do is this:
I have a Custom Indicator based on which I enter BUY when it is above 0 and close the BUY when it is below (by the time it is above 0 and comes back below 0, we would have already made at least 10 pips). Vice Versa for SELL
So this part I entered myself:
double SS1 = iCustom(Symbol(),0,"SS",0,1); double SS2 = iCustom(Symbol(),0,"SS",1,1);
If I put SL, TP and TS, this works fine in back-test but still some Order Moidy Errors are there in journal. Can you tell me where I am wrong or you think the whole code is wrong ?
Thanks for your help.
Hi Devries !
I have a Custom Indicator based on which I enter BUY when it is above 0 and close the BUY when it is below (by the time it is above 0 and comes back below 0, we would have already made at least 10 pips). Vice Versa for
The way you use Slippage will lead often to requote from your broker if you have for example EURUSD price as 1.36675 (with 5 Digits)
Do you know why you have to use Slippage in your OrderSend and OrderClose command and what value is it on 4 digit , and what value has it 5 digit accounts how can you make it for both type accounts the same value ??
The way you use Slippage will lead often to requote from your broker if you have for example EURUSD price as 1.36675 (with 5 Digits)
Do you know why you have to use Slippage in your OrderSend and OrderClose command and what value is it on 4 digit , and what value has it 5 digit accounts how can you make it for both type accounts the same value ??
Thanks for taking time to answer my question Devries. You are a gentleman :). I made this code from forexeadvisor.com based on MACD and then changed the code for the custom indicator. The slippage is added from the code itself, I didn't put it.
The problem is I am getting Order Send Errors. How can I solve this ?
Can you change the code ? That would be so nice of you.
God Bless You
:)
Thanks for taking time to answer my question Devries. You are a gentleman :). I made this code from forexeadvisor.com based on MACD and then changed the code for the custom indicator. The slippage is added from the code itself, I didn't put it.
The problem is I am getting Order Send Errors. How can I solve this ?
Can you change the code ? That would be so nice of you.
God Bless You
:)
Ofcours I can make it the way it will work correctly... not only in tester but also on your account
Place a Job at Jobs for deVries if you want me to do it for you....
Those who wanna learn how to do get help here free for making it themselves
But if you wanna get it easie use Jobs
Since there are no slaves here, you have only three choices: Search for it, learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt and the nature of your problem.
WH Roeder ! NO ONE IS ASKING YOU TO CODE IT FOR ME. YOU MAY BE A CODER BUT YOUR ATTITUDE IS USELESS.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello Experts !
Please find the code here. When I try to backtest it, it shows Order Modify Error 1. Your help will be highly appreciated in this regard.
Thanks for your kind help.