LoopParticipant
Senior
Dear All,
could you translate into Prorealtime language the “Modified on Balance Volume” indicator described on April issue of Stock & Commodities?
I attached the Tradestation language.
Thanks a lot in advance
Best regards
Loop
// On-Balance Volume Modified
// Vitali Apirine
// TASC April 2020
inputs:
OBVMLength( 7 ),
SignalLineLength( 10 ) ;
variables:
OBVValue( 0 ),
OBVMValue( 0 ), SignalLineValue( 0 ) ;
OBVValue = OBV ;
OBVMValue = XAverage( OBVValue, OBVMLength ) ;
SignalLineValue = XAverage( OBVMValue, SignalLineLength ) ;
Plot1( OBVMValue, "OBVM" ) ; Plot2( SignalLineValue, "Signal Line" ) ;
This is indicator is nothing more than an EMA of OBV with a signal line made of a secondary EMA of the first one. I don’t know why it deserves an article in TASC. Anyway, here is the code:
src = customclose
length1 = 7 //Length1
length2 = 10 //Length2
obvm = average[length1,1](obv)
sig = average[length2,1](obvm)
return obvm,sig
JURGParticipant
Junior
Hello Nicolas, i get only this in my program(see attachment).
Can you help me?
Jurgen.
Remove or comment out line 1.