PDA

View Full Version : mql To vtll conversion



bharat.ecb
01-30-2014, 03:30 PM
Hi Sir,

Can you convert these functions into vtl ?

SetIndexStyle(7, DRAW_ARROW,0,1);
SetIndexArrow(7, 242);
SetIndexBuffer(7, MADown);

Thank you

Hassan-HS
01-30-2014, 07:49 PM
hi bharat,,




Public Sub main()
dim highArry()
CopyHigh 0,1, bars(0),highArry
indKey=AddCustomIndicator(0,highArry,1,false)
SetDrawingStyle 0,cstr(indKey),DRAW_ARROWS
SetArrowStyle 0, cstr(indKey) ,226
LineColor 0, CSTR(indKey), RGBColor(255, 0, 0)
End Sub



note

ignore SetIndexBffer, because you already pass an array to AddCustomIndicator (highArry in the sample).