[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 916
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello, I have a question. what value does iCustom() return from an indicator?
i.e. i have an indicator which has a calculation that should result in 1 or 0 or -1
and an Expert Advisor in which iCustom() is called.
I don't know where to put the calculated value in the indicator to get it in the Expert Advisor when calling it.
Hello, I have a question. what value does iCustom() return from an indicator?
i.e. i have an indicator which has a calculation that should result in 1 or 0 or -1
and an Expert Advisor in which iCustom() is called.
I don't know where to put the calculated value in the indicator to get it in the Expert Advisor when calling it.
hello!
Question about strategy tester: When testing in the journal tester no results with the records in the log file, in the terminal log error records also no ..... at the end of the loading bar, in the tester, there is a nasty squeak. advisor lies in the folder experts all the checkboxes are set hundred help plz?
so i don't understand! must a certain variable be set in the indicator or should i write it in return(????), because iCustom() returns 0 regardless of where i put this value.
Is it true that the EA may be tested but will not work on a demo or real account?
if so, should i recode the whole EA to make it work on the real account?
why should I re-code it for a testing version?
but if it's true, it's totally ...... i don't know how to write!!!!!!! i must have reread
the tutorial 10 times and in the documentation I do not argue all is smart and beautiful, but I still do not understand
what it says in there.!!!!
In the EA, check whether the order is closed on a stop. And if so, change the value of your flag.
You can use Igor Kim's ready-made function to determine if the last closed position was closed by a stop.
Or you can do it yourself. In any case, it would be a good example for you to start with:
I haven't tried to use your function, but I've tried to change flag in other, simpler way.
In the loop, which is much higher than the function of opening orders (it checks further on the code whether it needs to close its orders). Here, OP is a label of an order to be placed (my flag):
for(i=0; i<OrdersTotal(); i++)
{
if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)==false)
{OP=0;
break;// if the order number i does not exist, stop the search
}
....
In theory, if the reason was the value of the flag, the issue should have been closed. But the tester still does not open any further orders after the breakdown of the stop((
One more thing: when testing, the tester generates error 1. Is it worth paying special attention to it?
I have not tried the function you have given, but I have tried to change the flag in another, simpler way.
In the loop, which is much higher than the function of opening orders (it checks further by code the necessity of closing its orders). Here, OP is a mark of an order to be placed (my flag):
for(i=0; i<OrdersTotal(); i++)
{
if (OrderSelect(i,SELECT_BY_POS,MODE_TRADES)==false)
{OP=0;
break;// if the order number i does not exist, stop the search
}
....
In theory, if the reason was the value of the flag, the issue should have been closed. But the tester still does not open any further orders after the breakdown of the stop((
One more thing: when testing, the tester generates error 1. Is it worth paying special attention to it?