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:431 / 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 100,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)

September Journal Challenge (sponsored by TopstepTrader)

September

Free Elite Membership: Twitter Tuesday and Facebook Friday!

Tue & Fri
 

Trading with Python: Using Machine Learning w/Ran Aroussi [12:30PM ET]

Elite only

TopstepTrader (TBD)

Sep 25

RandBots (TBD)

Sep 27

Anthony Drager (TBD)

Oct 4
     

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 11:51 AM
Indicator that displays % change in price? Righteous7 NinjaTrader 3 June 14th, 2014 02:29 PM
Ninjatrader indicator that displays the current bar's volume delta on the chart? Zigrivers The Elite Circle 5 November 17th, 2013 12:27 AM
Simple recent S/R indicator rg12 NinjaTrader 9 August 5th, 2013 05:50 PM
Is there an indicator that displays range bar durations with a graph? Itchymoku Sierra Chart 2 July 1st, 2013 10:01 PM


All times are GMT -4. The time now is 12:55 PM. (this page content is cached, log in for real-time version)

Copyright © 2018 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 2018-09-19 in 0.07 seconds with 15 queries on phoenix