ADE Sender - Receiver with Datetime

Studies that have been contributed to the community by other users. If you’ve got something useful to share, that’s great!
SP
Posts: 453
Joined: 06 Feb 2006
Has thanked: 36 times
Been thanked: 283 times

ADE Sender - Receiver with Datetime

Postby SP » 24 Sep 2014

Since MC 8 uses Miliseconds precision the attached codes allow to send and receive values between charts and charts and scanner using Miliseconds.

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");
Attachments
ADE DATETIME.pla
(70.17 KiB) Downloaded 226 times

philhm
Posts: 3
Joined: 01 Aug 2014
Has thanked: 3 times

Re: ADE Sender - Receiver with Datetime

Postby philhm » 24 Sep 2014

Thanks SP! It sounds like you know about ADE. I was wondering if I could ask you for a favor, not sure how hard it is to do but could you write an indicator that reads zones/lines/rectangles from a txt file on the C Drive. As far as I understand ADE is the only way to do this. Basically I would love to have something like what Eminiplayer offers for TS but as far as I understand his is for TS only and also quite a bit steep:

http://eminiplayer.net/page/EMiniPlayer ... ation.aspx

Thanks !!

SP
Posts: 453
Joined: 06 Feb 2006
Has thanked: 36 times
Been thanked: 283 times

Re: ADE Sender - Receiver with Datetime

Postby SP » 25 Sep 2014

philhm,

take a look a the "The Economic Events Collection" code from JoshM how to read values form text files into PLE.
viewtopic.php?f=5&t=9951


Return to “User Contributed Studies and Indicator Library”