Help With An EL Learning Exercise - EasyLanguage Programming | futures io social day trading
futures io futures trading


Help With An EL Learning Exercise
Updated: Views / Replies:475 / 6
Created: by TrendFirst 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
 

Help With An EL Learning Exercise

  #1 (permalink)
Trading Apprentice
Calgary AB Canada
 
Futures Experience: Intermediate
Platform: Multicharts, IQFeed
Broker/Data: Interactive Brokers, Fidelity, Questrade
Favorite Futures: Forex, Options, Futures, Stock
 
Posts: 8 since Jan 2016
Thanks: 2 given, 0 received

Help With An EL Learning Exercise

Hi All

I'm starting the process of learning EL and have been watching videos, reading the manuals, and making simple modifications to existing indicators in Multicharts. Most of the mods have gone well, but one is kinda puzzling. I took the Pivot High and Pivot Low indicators and combined them in one script. It works fine for a while, finding and plotting the proper pivots, then at a random moment, the pivots are displaced vertically on the chart. I've attached two images, one shows them working and the other, not.



 
Code
inputs: 
	PriceHi ( High ), 
	PriceLo ( Low ),
	LeftStrength( 3 ), 
	RightStrength( 3 );
	
condition1 = PivotHighVSBar( 1, PriceHi, LeftStrength, RightStrength, RightStrength + 1 ) <> -1 ;
if condition1 then begin
	Plot1[RightStrength]( High[RightStrength], "PivotHi" ) ; 
	once print (PriceHi) ;
	Alert ;
once Print (condition1);
	end
else
	NoPlot( 1 ) ;

condition2 = PivotLowVSBar( 1, PriceLo, LeftStrength, RightStrength, RightStrength + 1 ) <> -1 ;
if condition2 then begin
	Plot2[RightStrength]( Low[RightStrength], "PivotLo" ) ;
	Alert ;
once Print (condition2);
	end
else
	NoPlot( 1 ) ;


Last edited by TrendFirst; March 18th, 2016 at 12:05 AM. Reason: forgot to attach images
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
Calgary AB Canada
 
Futures Experience: Intermediate
Platform: Multicharts, IQFeed
Broker/Data: Interactive Brokers, Fidelity, Questrade
Favorite Futures: Forex, Options, Futures, Stock
 
Posts: 8 since Jan 2016
Thanks: 2 given, 0 received

Forgot the images....


Here they are:

Attached Thumbnails
Help With An EL Learning Exercise-pivot_hi_lo.jpg   Help With An EL Learning Exercise-pivot_hi_lo2.jpg  
Reply With Quote
 
  #4 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,533 since Apr 2013
Thanks: 231 given, 855 received
Forum Reputation: Legendary

TrendFirst,

check the last line of your script, you allow the low pivot to remove high pivot plots.

Regards,

ABCTG

Reply With Quote
The following user says Thank You to ABCTG for this post:
 
  #5 (permalink)
Trading Apprentice
Calgary AB Canada
 
Futures Experience: Intermediate
Platform: Multicharts, IQFeed
Broker/Data: Interactive Brokers, Fidelity, Questrade
Favorite Futures: Forex, Options, Futures, Stock
 
Posts: 8 since Jan 2016
Thanks: 2 given, 0 received


ABCTG View Post
TrendFirst,

check the last line of your script, you allow the low pivot to remove high pivot plots.

Regards,

ABCTG

Ah. I knew it was something silly. Thank you.

Reply With Quote
 
  #6 (permalink)
Trading Apprentice
Calgary AB Canada
 
Futures Experience: Intermediate
Platform: Multicharts, IQFeed
Broker/Data: Interactive Brokers, Fidelity, Questrade
Favorite Futures: Forex, Options, Futures, Stock
 
Posts: 8 since Jan 2016
Thanks: 2 given, 0 received

One other question.....during debugging I was attempting to print out the pivots. Apparently I don't know how to identify/describe them, because the numbers I was getting were not the same pivots that plotted on the chart. Here is my print statement for the high pivots:

 
Code
Print (condition1);
Print (PivotHi);

Any idea why this wouldn't give the correct pivots?

Reply With Quote
 
  #7 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,533 since Apr 2013
Thanks: 231 given, 855 received
Forum Reputation: Legendary

TrendFirst,

in the code you posted there is no variable named PivotHi, so trying to print a non existing variable should result in an error message from the compiler. For the high pivot you can print at the same point where you wrote "once print (PriceHi)", but instead use
 
Code
Print("PivotHi: " + High[RightStrength]);
Regards,

ABCTG

Reply With Quote
The following user says Thank You to ABCTG for this post:

Reply



futures io > > > > > Help With An EL Learning Exercise

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
Coin Flip Exercise Java Traders Hideout 8 December 29th, 2014 10:47 PM
Learning how to play guitar...reminds me of learning how to trade shodson Beginners and Introductions 10 September 16th, 2013 06:22 PM
My “Focus Meditation” Exercise AttitudeTrader Psychology and Money Management 13 July 17th, 2012 10:22 AM
Learning EL. Question Timot EasyLanguage Programming 13 May 12th, 2012 10:41 AM
Money Management Exercise George Psychology and Money Management 8 July 30th, 2010 11:26 AM


All times are GMT -4. The time now is 11:08 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-16 in 0.08 seconds with 20 queries on phoenix via your IP 54.226.34.209