Forum

wrong output from iMA()

Hello everyone, I'm trying new code with Moving averages on 3 different periods: string MAsBuySig; extern int cx1= 2 ; // MA shift 1 extern int cx2= 3 ; // MA shift 2 extern int cx3= 4 ; // MA shift 3 void OnTick () { double MA200_cx1 = iMA ( _Symbol , _Period , 200 , 0 , MODE_SMA , PRICE_CLOSE

Draw line from High to High

Hi everyone, i'm new to programming and to this nice forum :D with this code i'm trying to draw a line from the previous day high to the current day high, i got the values for each but couldn't specify the time correctly void OnTick () { datetime YesterdayDate= iTime ( NULL , PERIOD_D1 , 1 ); //