I try to run the EA, but it only create the log and could only run a little time then stop like freezen:
2012.07.21 23:32:10 TestGenerator: unmatched data error (volume limit 117 at 2012.05.11 08:05 exceeded)
I am a newbie, thank you for help me!
//+------------------------------------------------------------------+ //| expert start function | //+------------------------------------------------------------------+ int start() { //---- int i,counted_bars=IndicatorCounted(); //----Is this code indicator or EA ?? or is it something ... I don't know |
double AtrBuffer[]; ,counted_bars=IndicatorCounted(); OrderSend(Symbol(),OP_BUY,0.1,Ask,3,0,0,"",ATR,0,B lue);
- If this is an indicator, indicators can NOT sleep or wait, they can NOT call orderSend(). It will hang the terminal
- If this is supposed to be an EA, you can NOT call indicatorCounted(), and you must resize your arrays yourself.
Thank you ! I have modified counted_bars=bars. Should not use the IndicatorCounted. Because I use the Indicator DEMO code, so ...
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