Need Indicator Help Assigning A Value - EasyLanguage Programming | futures io social day trading
futures io futures trading


Need Indicator Help Assigning A Value
Updated: Views / Replies:157 / 7
Created: by Joe50 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 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

 
 
Thread Tools
 

Need Indicator Help Assigning A Value

 
HONOLULU
 
Trading Experience: None
 
Posts: 22 since Feb 2019
Thanks: 6 given, 3 received

Need Indicator Help Assigning A Value

Hello,

Thankyou for taking the time to read this and if you can help me that would be great !

I am trying to plot the value 1 if my condition is TRUE or -1 if my condition is false. I have tried for hours upon hours but still have not got it.

Here is what I have:

Inputs: Color(Yellow), Thickness(1);
Variables: HP(0), LP(0), HH(0),LL(0);

IF Time = 1200 Then Begin
HP = high;
LP = low;
Value1 = IFF( High > HP, 1,-1);
{Value2 = IFF( Low < LP, -1,1 );}

End;

Plot1 (Value1);

 
 
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.

 
 
Legendary  Vendor: www.abctradinggroup.com 
Hamburg Germany
 
Trading Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 2,054 since Apr 2013
Thanks: 360 given, 1,296 received


Joe50,

you evaluate your condition at 1200. At that time your code assigns the value of the reserved word High to your variable HP i.e. HP = High and thus your check for High > HP can never be true at 1200.
Without knowing what exactly you want to check for it's hard to point you into the right direction, but maybe you can elaborate a bit more on the exact condition you want to check for.

Regards,

ABCTG

 
 
HONOLULU
 
Trading Experience: None
 
Posts: 22 since Feb 2019
Thanks: 6 given, 3 received

Oooooh I see what you mean.

I am trying to assign a 1 if anytime after 1200 if the high of 1200 bar is exceeded by .01 points ( 1 tick) or a -1 if the low of the 1200 bar is exceeded by .01 points or 1 tick.

Hmmm, I have alot to learn:

Inputs: Color(Yellow), Thicknes(1);
Variables: HP(0), LP(0), HH(0),LL(0);

IF Time = 1200 Then Begin
HP = high;
LP = low;
Value1 = IFF( High +.01 > HP, 1,-1);
Value2 = IFF( Low -.01 < LP, -1,1);

End;

Plot1 (Value1);
Plot2 (Value2);
{Plot3 (0);}

 
 
Legendary  Vendor: www.abctradinggroup.com 
Hamburg Germany
 
Trading Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 2,054 since Apr 2013
Thanks: 360 given, 1,296 received

Joe50,

you evaluate you conditions within a if ... then begin ... end conditional branch i.e. only if Time = 1200 and since you assign High to HP at 1200 and perform your check at 1200 only, your condition High +.01 > HP will always be true.

Depending on the instrument you apply this to you might not need the additional +/-1 0.01, but to achieve what you have in mind the checks need to be moved out of the if Time = 1200 block. Otherwise they won't be evaluated every bar.

Regards,

ABCTG


Joe50 View Post
Oooooh I see what you mean.

I am trying to assign a 1 if anytime after 1200 if the high of 1200 bar is exceeded by .01 points ( 1 tick) or a -1 if the low of the 1200 bar is exceeded by .01 points or 1 tick.

Hmmm, I have alot to learn:

Inputs: Color(Yellow), Thicknes(1);
Variables: HP(0), LP(0), HH(0),LL(0);

IF Time = 1200 Then Begin
HP = high;
LP = low;
Value1 = IFF( High +.01 > HP, 1,-1);
Value2 = IFF( Low -.01 < LP, -1,1);

End;

Plot1 (Value1);
Plot2 (Value2);
{Plot3 (0);}


The following user says Thank You to ABCTG for this post:
 
 
HONOLULU
 
Trading Experience: None
 
Posts: 22 since Feb 2019
Thanks: 6 given, 3 received

OK , I'll mess around with it.

Possible time > 1200 or >=1205

Thank You

 
 
HONOLULU
 
Trading Experience: None
 
Posts: 22 since Feb 2019
Thanks: 6 given, 3 received

Ok Got it !

Thankyou for your input I would have never got it without you !

 
 
Legendary  Vendor: www.abctradinggroup.com 
Hamburg Germany
 
Trading Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 2,054 since Apr 2013
Thanks: 360 given, 1,296 received

Joe50,

you are welcome and thank you for your feedback.

Regards,

ABCTG


Joe50 View Post
Ok Got it !

Thankyou for your input I would have never got it without you !



 



futures io > > > > > Need Indicator Help Assigning A Value
Thread Tools



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

futures io is celebrating 10-years w/ over $18,000 in prizes!

Right now
 

Thanks for everything -- $250 in Amazon Gift Cards ready to give away

Right now
 

Journal in July -- over $2,500 in prizes w/NinjaTrader

July
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Assigning a numeric value to a signal generated by an indicator Bullywig NinjaTrader 4 January 26th, 2018 07:53 PM
Need help on modify previous bar's value joysync ThinkOrSwim Programming 0 May 29th, 2017 04:29 PM
Assigning DataSeries Close values to variables? hrrsh NinjaTrader Programming 2 February 22nd, 2015 07:12 PM
How to capture a double value for entry price and int value for entry bar kbaran Elite Automated Trading 3 October 10th, 2012 05:37 PM
Need some help referencing a value of a secondary Time Series.... forrestang NinjaTrader Programming 6 October 20th, 2011 01:03 PM


Tags
2000i, code, conditional, easylanguage, es, feedback, indicator, indicators, instrument, multicharts, neoticker, tick, tradestation, variable

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

Copyright © 2019 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432 WhatsApp Business, 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