Event for detecting when chart moves - NinjaTrader Programming | futures io social trading
futures io futures trading


Event for detecting when chart moves
Updated: Views / Replies:188 / 3
Created: by Popsicle Attachments:0

Welcome to futures io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.


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, and we will never resell your private information.

-- Big Mike

Reply
 
Thread Tools Search this Thread
 

Event for detecting when chart moves

  #1 (permalink)
Elite Member
Pretoria Gauteng
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: Emini ES, Crude CL
 
Popsicle's Avatar
 
Posts: 205 since May 2016
Thanks: 1,760 given, 451 received

Event for detecting when chart moves

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

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
Omer עומר / Israel י
 
Futures Experience: Master
Platform: NinjaTrader, Proprietary,
Broker/Data: Ninjabrokerage/IQfeed + Synthetic datafeed
Favorite Futures: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
 
rleplae's Avatar
 
Posts: 1,981 since Sep 2013
Thanks: 1,396 given, 2,961 received
Forum Reputation: Legendary



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 ?

Reply With Quote
The following user says Thank You to rleplae for this post:
 
  #4 (permalink)
Elite Member
Pretoria Gauteng
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: Emini ES, Crude CL
 
Popsicle's Avatar
 
Posts: 205 since May 2016
Thanks: 1,760 given, 451 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


Last edited by Popsicle; August 9th, 2016 at 06:33 AM.
Reply With Quote
The following user says Thank You to Popsicle for this post:

Reply



futures io > > > > > Event for detecting when chart moves

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

FIO Journal Challenge featuring NinjaTrader ($2,000+ of prizes)

May

An overview of volumetric analytical tools w/Sergey Sokolov @ PTMC

Elite only

John Hoagland (TBA)

Elite only

FuturesTrader71 Extended Ask Me Anything (AMA)

Elite only

Pete @ Jigsaw Trading (TBA)

Elite only

John @ No BS Day Trading (TBA)

Elite only

An Afternoon with FIO member Softsoap (being rescheduled)

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Detecting chop shodson The Elite Circle 154 May 14th, 2017 07:48 AM
Range and time chart of single event - need help with discrepancy in price action ekim Beginners and Introductions 6 May 24th, 2014 06:21 AM
Detecting witch Data is in use arjfca MultiCharts 3 November 26th, 2012 07:27 AM
Chart event notify? Joseph689 NinjaTrader 0 October 27th, 2012 01:42 PM
Detecting thrusts NW27 MultiCharts 3 July 2nd, 2012 08:30 AM


All times are GMT -4. The time now is 11:21 AM.

Copyright © 2017 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
Page generated 2017-05-28 in 0.08 seconds with 19 queries on phoenix via your IP 54.162.184.185