To send ie a moving average based on volume charts for the same symbol you use for sending
Code: Select all
inputs:
Price ( Close ),
Length ( 9 ),
Send ( true ),
// TypeCodes for standard TS TypeZero bars
// -------------------------------------------------
// 11 = Tick bars with TradeVolume for Volume
// 12 = Tick bars with TickCount for Volume
// 21 = Volume bars with TradeVolume for Volume
// 22 = Volume bars with TickCount for Volume
TypeCode ( 21 );
variables: MyMovAvg( 0 ) ;
MyMovAvg = AverageFC( Price, Length ) ;
If Send then begin
save_global_data( SymbolName, ADE.TypeZeroInterval(TypeCode, barinterval), ADE.TypeZeroBarID_dt,"_MyMovAvg", MyMovAvg );
end;
Plot1 (MyMovAvg , "MyMovAvg");
and for receiving
Code: Select all
inputs:
TypeCode ( 21 ),
IntervalSize ( barinterval ); // Type in the interval of the sender chart, ie 1000 for a 1000 Volume Chart
variables: MyMovAvg( 0 ) ;
load_global_data( SymbolName, ADE.TypeZeroInterval(TypeCode, IntervalSize), ADE.TypeZeroBarID_dt,"_MyMovAvg", MyMovAvg);
Plot1 (MyMovAvg, "MyMovAvg");