The following error is given when I compile the EA in MetaEditor
Long Moving average does not have enough Bars in history to double quotes needed
Any suggestions on how to fix the error. Thanks
//±-----------------------------------------------------------------+
//| expert start function |
//±-----------------------------------------------------------------+
int start()
{
// Moving Average only run expert Advisor if there
// is enough Candle/Bars in history
if(Bars < Long_MA_Period+1)
{
if(Istesting()==false)
{
Comment ("Long Moving average does not have enough Bars in history to
open a trade!
“”,
“Must be at least”, ““Long_MA_Period, bar to
perform technical analysis.””);