Event for detecting when chart moves - futures io
futures io futures trading



Event for detecting when chart moves


Discussion in NinjaTrader

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




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Event for detecting when chart moves

(login for full post details)
  #1 (permalink)
Pretoria Gauteng
 
Experience: Intermediate
Platform: Sierra Charts
Trading: NQ
 
Popsicle's Avatar
 
Posts: 249 since May 2016
Thanks: 2,426 given, 545 received

Hi All,

I wrote an indicator that draws some rectangles based on user selection. The problem I have is that when the chart shifts left or right (either by user input or more data) the objects stay at their original position naturally.

Is there an event I can subscribe for, or any other method, that would fire when the chart moves so that I can also re position my custom drawn objects?

I read somewhere that the only way to do this is to write your own bar type but it sounds a bit overkill.

Thanks for any help,
Popsicle

Follow me on Twitter Started this thread Reply With Quote

Can you help answer these questions
from other members on futures io?
NT8 indicator to simulate a Funding Evaluation where to …
NinjaTrader
COTbase for quant trading?
Elite Algorithmic NinjaTrader Trading
Indicators for pair trading MES and M2K
Platforms and Indicators
ZigZag with Depth and Backstep
EasyLanguage Programming
Where can I find Cost to Trade and Book Depth info?
Emini and Emicro Index
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Battlestations: Show us your trading desks!
137 thanks
Big Mike in Ecuador
34 thanks
Want your NinjaTrader indicator created, free?
32 thanks
Saturday Morning Market Replay!
20 thanks
Selling Options on Futures?
19 thanks
 
(login for full post details)
  #3 (permalink)
Gits (Hooglede) Belgium
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 2,991 since Sep 2013
Thanks: 2,437 given, 5,801 received



Popsicle View Post
Hi All,

I wrote an indicator that draws some rectangles based on user selection. The problem I have is that when the chart shifts left or right (either by user input or more data) the objects stay at their original position naturally.

Is there an event I can subscribe for, or any other method, that would fire when the chart moves so that I can also re position my custom drawn objects?

I read somewhere that the only way to do this is to write your own bar type but it sounds a bit overkill.

Thanks for any help,
Popsicle

How did you draw that rectangle ?
If you did it correctly, it should move automatically, as it will stick to the candles
Are you by any chance, using low level windows GDI calls ?

Follow me on Twitter Visit my futures io Trade Journal Reply With Quote
The following user says Thank You to rleplae for this post:
 
(login for full post details)
  #4 (permalink)
Pretoria Gauteng
 
Experience: Intermediate
Platform: Sierra Charts
Trading: NQ
 
Popsicle's Avatar
 
Posts: 249 since May 2016
Thanks: 2,426 given, 545 received


rleplae View Post
How did you draw that rectangle ?
If you did it correctly, it should move automatically, as it will stick to the candles
Are you by any chance, using low level windows GDI calls ?

Hi rleplae,

Thank you very much for your reply. I am drawing the rectangles in the plot override of the indicator with graphics.FillRectangle. Thanks to your reply I am now using DrawRectangle and it is working beautifully.

Thank you very much!

Popsicle

Follow me on Twitter Started this thread Reply With Quote
The following user says Thank You to Popsicle for this post:


futures io Trading Community Platforms and Indicators NinjaTrader > Event for detecting when chart moves


Last Updated on August 8, 2016


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

Journal Challenge w/Jigsaw

April
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts