DrawObjects/RemoveDrawObjects Realtime Blinking - NinjaTrader Programming | futures io social day trading
futures io futures trading


DrawObjects/RemoveDrawObjects Realtime Blinking
Updated: Views / Replies:398 / 2
Created: by marretta Attachments:0

Welcome to futures io.

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

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • 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.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

DrawObjects/RemoveDrawObjects Realtime Blinking

  #1 (permalink)
Trading Apprentice
Sao Paulo, Brazil
 
Futures Experience: None
Platform: Ninjatrader, Amibroker
Favorite Futures: Whatever Ticks
 
Posts: 3 since Aug 2014
Thanks: 0 given, 0 received

DrawObjects/RemoveDrawObjects Realtime Blinking

Hello everyone, first time on this forum. Need some help....Coming from Amibroker I'm trying to rewrite an indicator wich is very simple: start , target and stop values, and a line drawn at the exact point (value) on the chart. (sorry, forum doesn't allow me to post pics in the first 5 posts)


So what I'm trying to do, is to have the indicator to be in "real time mode", and by that I mean , for example, if I have the signal when a doji forms (Close[0]==Open[0]), I want to see a triangle below the bar while the bar is forming and if the bar changes I want to see the triangle desappear . I want to see it blinking...
So if I choose "Calculate on bar close - FALSE), as soon as the bar opens, wich always opens as a doji( first tick has always OPEN==CLOSE), the triangle shows and stays there forever even if the bar changes to a hammer or anyother candle than a doji.
So I checked the RemoveDrawObjects and using that it simply removes all the past signals, wich I want to have in the chart.

I tried to find a solution and the only one I found was to have two indicators to achieve that, one with a +CurrentBar and "calculate on bar close_TRUE" and another without +CurrentBar but "calculate on bar close_FALSE" , but I'm wondering if there is a better and easy way to do it.
Below I'll post the two formulas

Thank you
---------------------------------------------
This is the one that removes all the past signals, and I use Calculate on bar close - FALSE:
---------------------------------------------
#region Variables

//tentando colocar triangulo abaixo do doji
private bool drawTriangleUp = true;
private int TriangleOffset = 5;
private Color TriangleColor = Color.Gray;
#endregion

/// <summary>
/// This method is used to configure the indicator and is called once before any bar data is loaded.
/// </summary>
protected override void Initialize()
{
CalculateOnBarClose = false;
Overlay = true;
AutoScale = true;
PriceTypeSupported = false;
DisplayInDataBox = false;
PaintPriceMarkers = false;
}

/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
if (CurrentBar == 0)
{
return;
}
if (Close[0]==Open[0])
{

DrawTriangleUp("TriangleUp",false,0,Low[0]-(TriangleOffset * TickSize),TriangleColor);
//DrawTriangleUp("TriangleUp"+CurrentBar,false,0,Low[0]-(TriangleOffset * TickSize),TriangleColor);
}
else
{

RemoveDrawObject("TriangleUp");
}

}

------------------------------------------------------------------------------------------
and this is the one to have the past signals ploted with Calculate on bar close - TRUE
------------------------------------------------------------------------------------------
#region Variables

//tentando colocar triangulo abaixo do doji
private bool drawTriangleUp = true;
private int TriangleOffset = 5;
private Color TriangleColor = Color.Gray;
#endregion

/// <summary>
/// This method is used to configure the indicator and is called once before any bar data is loaded.
/// </summary>
protected override void Initialize()
{
CalculateOnBarClose = false;
Overlay = true;
AutoScale = true;
PriceTypeSupported = false;
DisplayInDataBox = false;
PaintPriceMarkers = false;
}

/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
if (CurrentBar == 0)
{
return;
}
if (Close[0]==Open[0])
{


DrawTriangleUp("TriangleUp"+CurrentBar,false,0,Low[0]-(TriangleOffset * TickSize),TriangleColor);
}
else
{

RemoveDrawObject("TriangleUp");
}

}

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)
Trading Apprentice
Sao Paulo, Brazil
 
Futures Experience: None
Platform: Ninjatrader, Amibroker
Favorite Futures: Whatever Ticks
 
Posts: 3 since Aug 2014
Thanks: 0 given, 0 received


Well, since it's been almost 4 weeks and I got ZERO replies for a simple question, and I can't download any indicator to learn Ninja Trader's Language without having to pay to become Elite Member, I don't see any reason to be in this Forum.

Could You Mr. Big Mike tell me how Do I cancel my registration in your website ? And also delete this posts and my answer to your Amibroker Platform Quiz, if you please.

Thank you.


Last edited by marretta; October 17th, 2014 at 06:48 PM.
Reply With Quote

Reply



futures io > > > > > DrawObjects/RemoveDrawObjects Realtime Blinking

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Paper Money realtime Werd ThinkOrSwim 12 October 25th, 2013 03:48 PM
Methods for Replicating Orders in Realtime? atcost Platforms and Indicators 5 October 9th, 2013 10:21 PM
indicator realtime updating johni MultiCharts 2 July 15th, 2011 05:45 AM
SP Bovespa realtime? azbarroso Traders Hideout 4 February 1st, 2011 07:36 AM
Do's n Dont's for realtime-trading DarthTrader Traders Hideout 6 June 15th, 2009 06:28 PM


All times are GMT -4. The time now is 04:05 PM.

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-12-12 in 0.08 seconds with 19 queries on phoenix via your IP 54.163.210.170