PDA

View Full Version : Some questions.. (Smoothed Ma, Ma_Shift, Indicator input etc )

KlitonFX
10-03-2014, 11:09 PM
Hello,
i have this question:
#1 What about the smoothed MA with VTL?
#2 What about the Ma_Shift (Mql ) in VTL?
#3 How i can set input parameter in code for a local script? ( custom indicator )

Best regards,
Kliton

Hassan-HS
10-04-2014, 03:25 PM
Welcome to our forum,
1.i will update you soon abount this point
2. Currently the vtl does not support this, but I will check the possibility of adding this in development queue
3. Yes you can set a external variables using InputBox.

Sample

Dim TicketID
TicketID=InputBox("Enter Position ID")
While not(IsNumeric(TicketID))
TicketID=InputBox("Enter a valid Position ID")
wend

Hassan-HS
10-08-2014, 07:43 AM
Dear Sir, You can calculate the Smooth Moving Average as the following:The first value for the Smoothed Moving Average is calculated as a Simple Moving Average (SMA):SUM1=SUM (CLOSE, N)SMMA1 = SUM1/ NThe second and subsequent moving averages are calculated according to this formula:SMMA (i) = (SUM1 – SMMA1+CLOSE (i))/ NWhere:SUM1 – is the total sum of closing prices for N periods;SMMA1 – is the smoothed moving average of the first bar;SMMA (i) – is the smoothed moving average of the current bar (except the first one);CLOSE (i) – is the current closing price;N – is the smoothing period.

10-09-2014, 03:09 PM
Hello

This implementation of SMMA is equal to EMA of period 2*N -1 where N is the SMMA period

KlitonFX
10-14-2014, 01:09 PM
How i can write text in the Journal? ( like "Print" of Mql)?

Thanks

KlitonFX
10-14-2014, 01:09 PM
How i can print things on Journal?

Hassan-HS
10-14-2014, 02:40 PM
Hello,

No you can only print on the chart.