- Experts: MMA_Breakout_strategy_Volume I - coded by WhooDoo22.
- Cycle Operator 'for' questions
- PLEASE REVIEW AND COMMENT
What are Function return values ? How do I use them ?
Hello Simon, I understand there are minor issues of less priority than MM and MF for the time being. I do plan to scour volume II after adding MM and MF. I will trim it by adding code to select orders by magic number, code to run volume II on 4-5 digit brokers, etc. I do understand there are many small details of note to be overseen, but for now, the more difficult work will be undertaken first. Your incite is well received and I plan to cross this bridge when I get to it. I will visit the link you provided. Thank you.
You can't go back in time to find what the Ask was when you tried to place an Order and it failed . . .
What is variable i how can it be a ticket number when you do this to it ?
i++;
I have 4 live trades at the moment, their ticket numbers are not sequential . . .
Simon,
If I thought what I had written...
RE: I understand that this fix is a necessity. I will fix this, I believe sooner than I thought because u seem very adamant in this fix being applied. I agree that this fix should be applied and will run tests with the error check function to isolate the error source. I will get back to this Simon. Thank you.
What is variable i...
RE: Variable i is a dummy ticket variable, but ;) i is not actually a ticket; i is considered a simple variable by the EA. The EA counts variable i instead of counting the actual ticket number (alternative method of counting current ticket).
how can it be a ticket number when you do this to it ?..
RE: Variable i is not actually a ticket number. i is a dummy ticket variable which is counted by the EA to keep up with the current ticket number count. Bottom line, variable i is not considered a ticket number.
I wished to answer your posts asap, but cannot provide extensive answers until I possess time to explain and discuss.
Thank you for your important post!
Simon,
I wished to answer your posts asap, but cannot provide extensive answers until I possess time to explain and discuss.
Thank you for your important post!
You can answer when you have time, that is OK :-)
If i is a dummy ticket number . . . . what is the point of doing this ?
OrderClose( i, 0.01,Ask,30,CLR_NONE);
isn't that guaranteed to fail ?
I believe there are multiple ways to select orders, All methods of selecting orders should use the OrderSelect() function. With that said, I do not see why this would fail because the EA clearly performs the OrderClose() function for all orders without error in the strategy tester.
I am not familiar of the differences between demo and live except for the concept of virtual and actual funds for accounts.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use