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

Help With An EL Learning Exercise
 Updated: March 19th, 2016 (03:48 PM) Views / Replies: 655 / 6 Created: March 18th, 2016 (12:04 AM) by TrendFirst Attachments: 2

 Welcome to futures io.

# Help With An EL Learning Exercise

Platform: Multicharts, IQFeed
Favorite Futures: Forex, Options, Futures, Stock

Posts: 8 since Jan 2016

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

 March 18th, 2016, 12:04 AM #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.

 March 18th, 2016, 12:07 AM #3 (permalink) Trading Apprentice Calgary AB Canada   Trading 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

 March 18th, 2016, 06:02 AM #4 (permalink) Vendor: www.abctradinggroup.com  Hamburg Germany   Trading Experience: Advanced Platform: Multicharts, Tradestation Broker/Data: DTN IQ Favorite Futures: ES   Posts: 1,892 since Apr 2013 Thanks: 312 given, 1,169 received TrendFirst, check the last line of your script, you allow the low pivot to remove high pivot plots. Regards, ABCTG
 The following user says Thank You to ABCTG for this post:

Platform: Multicharts, IQFeed
Favorite Futures: Forex, Options, Futures, Stock

Posts: 8 since Jan 2016

ABCTG
 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.

Platform: Multicharts, IQFeed
Favorite Futures: Forex, Options, Futures, Stock

Posts: 8 since Jan 2016

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?

Hamburg Germany

Broker/Data: DTN IQ
Favorite Futures: ES

Posts: 1,892 since Apr 2013

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

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

 futures io > Help With An EL Learning Exercise

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

February

Feb 21

Mar 5

Mar 12

Mar 19

## Day Trading Oil Futures: Reducing Risk & Increasing Profits w/DTN IQFeed

Mar 26

 Similar Threads Thread Thread Starter Forum Replies Last Post Java Traders Hideout 8 December 29th, 2014 10:47 PM shodson Beginners and Introductions 10 September 16th, 2013 06:22 PM AttitudeTrader Psychology and Money Management 13 July 17th, 2012 10:22 AM Timot EasyLanguage Programming 13 May 12th, 2012 10:41 AM George Psychology and Money Management 8 July 30th, 2010 11:26 AM

 Tags abc, code, dom, easylanguage, el, how to, indicators, information, multicharts, neoticker, pivots, strength, tradestation, variable