Code that displays only most recent Indicator (from right of chart) - TradeStation | futures io social day trading
futures io futures trading


Code that displays only most recent Indicator (from right of chart)
Updated: Views / Replies:334 / 0
Created: by Wsquare Attachments:2

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
 

Code that displays only most recent Indicator (from right of chart)

  #1 (permalink)
Trading Apprentice
Harrisburg, PA
 
Futures Experience: Advanced
Platform: Tradestation
Favorite Futures: ES
 
Posts: 1 since Sep 2015
Thanks: 0 given, 0 received

Code that displays only most recent Indicator (from right of chart)

I am trying to code a vertical line indicator {VL} so that it displays only the most recent SMA cross over rather than all of the crosses of the SMAs which might over the range of the chart. Below is an example of the code, I am going to code in a "loop" once I get get the placement of the VL correct. I do not understand why the placement is not working. Any guidance as to which function to use is much appreciated. Thank you very much!



Inputs: Line1(True), LineTime1(Close),
Line2(True), LineTime2(Average(Close,5));

Using elsystem;
using elsystem.drawing;
Using elsystem.drawingobjects;
Vars: VerticalLine VL(Null);

Method void DrawVerticalLine()
Begin
VL = VerticalLine.Create(BNPoint.Create(CurrentBar, Close));
VL.Persist = FALSE;
DrawingObjects.Add(VL);
End;

If LastBarOnChart then
Begin
If (Close > LineTime2) and (Close[1] < LineTime2[1]) then Begin
DrawVerticalLine();
DrawingObjects.Add(VL);
VL.Color = elsystem.drawing.Color.RED; // Upward Line
VL.Style = StyleType.solid;
VL.Weight = Weight.weight4;
End;

If (Close[1] > LineTime2[1]) and (Close[2] < LineTime2[2]) then Begin
DrawVerticalLine();
DrawingObjects.Add(VL);
VL.Color = elsystem.drawing.Color.CYAN; // Upward Line
VL.Style = StyleType.solid;
VL.Weight = Weight.weight4;
End;

If (Close[2] > LineTime2[2]) and (Close[3] < LineTime2[3]) then Begin
DrawVerticalLine();
DrawingObjects.Add(VL);
VL.Color = elsystem.drawing.Color.YELLOW; // Upward Line
VL.Style = StyleType.solid;
VL.Weight = Weight.weight4;
End;

End;

Attached Thumbnails
Code that displays only most recent Indicator (from right of chart)-ts_outputcode1.png   Code that displays only most recent Indicator (from right of chart)-ts_outputexample1.png  
Reply With Quote

Reply



futures io > > > > Code that displays only most recent Indicator (from right of chart)

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to code MQL indicator from ThinkorSwim Code bearman99 MetaQuotes MetaTrader MQL Programming 2 June 17th, 2015 12:51 PM
Indicator that displays % change in price? Righteous7 NinjaTrader 3 June 14th, 2014 03:29 PM
Ninjatrader indicator that displays the current bar's volume delta on the chart? Zigrivers The Elite Circle 5 November 17th, 2013 01:27 AM
Simple recent S/R indicator rg12 NinjaTrader 9 August 5th, 2013 06:50 PM
Is there an indicator that displays range bar durations with a graph? Itchymoku Sierra Chart 2 July 1st, 2013 11:01 PM


All times are GMT -4. The time now is 02:45 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-12-15 in 0.06 seconds with 20 queries on phoenix via your IP 54.226.132.197