NexusFi: Find Your Edge


Home Menu

 





ADE and Intrabarpersist Question?


Discussion in EasyLanguage Programming

Updated
    1. trending_up 2,755 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 3 posts
    2. attach_file 3 attachments




 
Search this Thread
  #1 (permalink)
nunoonline
France
 
Posts: 10 since Apr 2010
Thanks Given: 7
Thanks Received: 0

Hi,
I am using ADE to transfer an indicator information from a daily chart to an intraday chart. That's ok for this

In my 5min Chart, i have the information (the value of my indicator) for the last daily bar closed.
Is it possible to have the information for this last bar even if the bar isn't closed?

for exemple, today (01 Oct 2012) i have the daily indicator value for the last bar closed (28 Setp 2012)
I would like to have the daily indicator value for the last bar even if this bar isn't closed (01 Oct 2012)

is it possible?
Do i have tu use IntrabarPersist? ... How ?
here is the indicator

// NR_ADE_Sender indicator

 
Code
Vars:              
Class("DailyAvg") , AvgMap(MapSN.New), MA(0);
   
// CACULATE MOVING AVERAGE
MA = AverageFc(c,50);

//Store the data we are interested in into AvgMap
Value1 = MapSN.Put(AvgMap,"DailyAvg", MA);

//Use ADE to store for current  symbol and bar interval
Value1 = ADE.PutBarinfo(class, GetsymbolName, ADE.Barinterval, ADE.BarID, AvgMap);

//Plot daily average on daily chart
Plot1(MA, "Av",  DarkBlue);
// NR_ADE_Reciever indicator

 
Code
Vars: 
   Interval(0), Class("DailyAvg"), AvgMap(Mapsn.new),
   value1(0), value2(0);

value1 = Ade.GetBarInfo(Class, GetSymbolName, Interval, Ade.BarID, AvgMap);
value2 = MapSN.Get(AvgMap, "DailyAvg");

Plot1(value2, "DailyAvg", Darkblue);
In screenshots the 2 indicators are "update on every tick

thank you for your help

Nuno


Attached Thumbnails
Click image for larger version

Name:	MultiCharts1.png
Views:	287
Size:	147.9 KB
ID:	90781   Click image for larger version

Name:	Format Study NR_ADE_Reciver.jpg
Views:	276
Size:	240.4 KB
ID:	90783  
Attached Files
Elite Membership required to download: ade_test.pla
Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Trump Truth Social Fires Hormuz From 10% to 59% -- Arsen …
Prediction Markets & Event Contracts
$4.5M Floods Russia Nuclear Contract in 24 Hours -- Krem …
Prediction Markets & Event Contracts
Hormuz Completely Closed: US Strikes Day 2, Iran Shoots …
Traders Hideout
Warsh Drops Easing Bias, December Hike Now Above 50% -- …
Prediction Markets & Event Contracts
Iran Lebanon Problem Kills Switzerland Talks, Brent at $ …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
15 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
  #3 (permalink)
Bimi
London
 
Posts: 118 since Mar 2010
Thanks Given: 42
Thanks Received: 58


it can't be done
don't waste your time
use something else


Reply With Quote
  #4 (permalink)
nunoonline
France
 
Posts: 10 since Apr 2010
Thanks Given: 7
Thanks Received: 0

thank you Bimi

is there another solution to save the results of the current bar until it is complete ?

Nuno


Reply With Quote




Last Updated on October 2, 2012


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts