NexusFi: Find Your Edge


Home Menu

 





ADE and Intrabarpersist Question?


Discussion in EasyLanguage Programming

Updated
    1. trending_up 2,640 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:	264
Size:	147.9 KB
ID:	90781   Click image for larger version

Name:	Format Study NR_ADE_Reciver.jpg
Views:	252
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?
Zytrade: Devin Brady, CEO - Ask Me Anything (AMA)
Brokers
Khamenei Vetoes Uranium Transfer as Peace Odds Surge to …
Prediction Markets & Event Contracts
Rubios Good News Within Hours and the 30-Day Math: Why H …
Prediction Markets & Event Contracts
Bond Market Rout -- Worst Week Since Russias 2022 Invasi …
Treasury Notes and Bonds
CME Launches Bitcoin Volatility Futures June 1 -- First …
Cryptocurrency
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
23 thanks
2026 Jlab journal
10 thanks
Trying to learn Volume and price action correlation
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 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