Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 451
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
Yes, Ask prices are not visible, but they are :)
In the visualizer, you can press pause and select "Show Ask line" in the chart properties and continue testing. The price chart in MT4 is normally plotted by Bid.
What does the quality of testing depend on and how can it be increased to the maximum?
and what does the quality of testing depend on and how can it be improved towards the maximum?
Dear Professionals.
Could you please tell me how to open a grid of pending orders without using cycles?
If not difficult, please show at least a rough example of such code,
with possibility to change step and lot size of each successive order of the grid.
I put lines
instead ofint Ticket; errors come out:
'=' - left square parenthesis expected for array('=' - Left square bracket, expected for array)
'>' - left square parenthesis expected for array ('=' - Left square bracket expected for array)
'>' - unexpected token('>' - Unexpected token)
')' - assignment expected('' - assignment expected )
'continue' - 'break' or 'continue' used within some loops only )
and a lot more.
So Ticket is still being used somewhere in the old version. We need to clean up the code...
Dear Professionals.
Could you please tell me how to open a grid of pending orders without using loops?
If it is not difficult, please show at least a rough example of such code,
If you can change step and lot size of each subsequent order in the grid.
Vitek, use the SRC button to paste the code! Who needs to dig through unreadable scribbles!
What should I add or change to close all open orders on all pairs by lot size.
What should I add or change to close all open orders on all pairs by lot size.
Below the last extern:
extern int slippage = 2; // price slippage when closing market positions
insert another one:
extern bool total_symb = true; //on all pairs
and on each line:
if ((OrderSymbol() == Symbol())
и
if(OrderSymbol() == Symbol())
replace with this one:
if(OrderSymbol() == Symbol() || total_symb)
Theoretically it should work, check it.
Question has arisen, is it possible to write an Expert Advisor or script, which would be to achieve for example a 2% loss on the day would close all transactions?
It is possible.