Brain dead this morning!

 

My brain just went blank this morning. In EA's I normally compare one indicator against another. For the likes of me I tried a few minutes ago to code to see if the moving average of the indicator is greater than the ask of the current bar.

if (indma_cur0>ask() . . . . .

I get an error on the ask().

Could somebody with an alert brain help me on this - What a way to start the day!

Dave

 

if I remember well, you dont need to ask(), just ask will do. if (indma> ask)...

Regards

David

 

It says ask variable not defined. Either way, with or without ()??

Dave

 
iscuba11:
It says ask variable not defined. Either way, with or without ()?? Dave

Ask not ask

 

Yes, got to capitalize the 'A'. If it was a snake, it would of bit me!

Thanks for the help!

Dave

Reason: