NexusFi: Find Your Edge


Home Menu

 





How to determine a chart is refreshing instead of plotting in real time ?


Discussion in EasyLanguage Programming

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




 
Search this Thread

How to determine a chart is refreshing instead of plotting in real time ?

  #1 (permalink)
 
syswizard's Avatar
 syswizard 
Philadelphia PA
 
Experience: Advanced
Platform: Multicharts
Broker: Ironbeam, Rithmic
Trading: Emini ES / NQ / CL / RTY / YM / BTC
Posts: 344 since Jan 2019
Thanks Given: 20
Thanks Received: 146

I need to perform some functions and calculations when I first open a chart and it is refreshing based on the lookback setting. Or do I have to wait for the LastBarOnChart and then go back in time to do the calculations ? For instance, I need to get the avg daily profit for the last 10 days.

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Trade idea based off three indicators.
Traders Hideout
Strategy stop orders partially filled
EasyLanguage Programming
Quantum physics & Trading dynamics
The Elite Circle
Cheap historycal L1 data for stocks
Stocks and ETFs
REcommedations for programming help
Sierra Chart
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Funded Trader platforms
57 thanks
Trading with Intuition
16 thanks
Just another trading journal: PA, Wyckoff & Trends
16 thanks
Self sabotage reframed
15 thanks
Joes Trading Garage
13 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 484
Thanks Received: 1,629

syswizard,

one approach could be to calculate the values bar by bar as the chart progresses if this is possible. For your example you could track the avg daily profit for every day and keep a running total of the last 10 days within an array.

Regards,

ABCTG


syswizard View Post
I need to perform some functions and calculations when I first open a chart and it is refreshing based on the lookback setting. Or do I have to wait for the LastBarOnChart and then go back in time to do the calculations ? For instance, I need to get the avg daily profit for the last 10 days.


Follow me on Twitter Reply With Quote




Last Updated on April 21, 2021


© 2024 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 - Privacy Policy - Downloads - Top
no new posts