NexusFi: Find Your Edge


Home Menu

 





Easy Language Syntax Error


Discussion in EasyLanguage Programming

Updated
    1. trending_up 1,612 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread

Easy Language Syntax Error

  #1 (permalink)
 
Warmachine's Avatar
 Warmachine 
Liberty Hill TX/US
 
Experience: Intermediate
Platform: Stage 5
Broker: Stage 5
Trading: ES,CL
Posts: 11 since Aug 2016
Thanks Given: 4
Thanks Received: 10

A brief bit of history before I get to my problem. I moved brokers from Tradestation to Stage 5. I am on a quest to move a few indicators from Tradestation to Stage 5 and have recently had a bit of luck. After finding out that Stage 5 is an Open E Cry platform I became aware the OEC understands most of Easy language. I have successfully imported 2 indicators and still have a few to go. On the others however I am getting a syntax error and need a bit of help.

Here are the details of the problem. I import by simply copying the Easy language and then "compile" (which is the same as "verify" in Tradestation). At which point it will pull up errors. I get the following error

Syntax error: lpar expected

When I double click the error my cursor is put in front of "plotpb" reserved word. I know this means plot paintbar. I am guessing in the code it is referencing a paint bar that Tradestation already understands but OEC doesn't know what to make of it or there is some sort of punctuation type error. I do know that "plotpb" is in BLUE meaning it recognizes it as an Easy language reserved word as it should. So there is my problem and where I need some folks from FIO to help. Your time and effort is much appreciated in advance and I will give additional information if anyone needs clarification in order to assist.

Last I have already tried the C# translator tool, typed "plotpaintbar", which seemed could be obvious easy fixes, without any success. I am now convinced I need a Easy Language knowledgeable person to solve my Error.


Sent from my iPhone using NexusFi mobile app

Anything worth doing is worth overdoing, moderation is for cowards
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Increase in trading performance by 75%
The Elite Circle
Exit Strategy
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
30 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
16 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,433 since Apr 2013
Thanks Given: 481
Thanks Received: 1,627

Warmachine,

"plotPB" is the EasyLanguage reserved word for a paint bar, which usually consists of four individual plots (rarely just two). If your software doesn't recognize it, you might be able to create the same effect with four separate plots: One that plots the Open, the High, the Low and Close.
You probably have to format them in the indicator properties to something what is called (Left Tick in TS for the Open plot, Bar High and Bar Low for High and Low and Right Tick for the Close). Otherwise they might just plot straight lines.

Regards,

ABCTG

Follow me on Twitter Reply With Quote
  #3 (permalink)
 
Warmachine's Avatar
 Warmachine 
Liberty Hill TX/US
 
Experience: Intermediate
Platform: Stage 5
Broker: Stage 5
Trading: ES,CL
Posts: 11 since Aug 2016
Thanks Given: 4
Thanks Received: 10



ABCTG View Post
Warmachine,

"plotPB" is the EasyLanguage reserved word for a paint bar, which usually consists of four individual plots (rarely just two). If your software doesn't recognize it, you might be able to create the same effect with four separate plots: One that plots the Open, the High, the Low and Close.
You probably have to format them in the indicator properties to something what is called (Left Tick in TS for the Open plot, Bar High and Bar Low for High and Low and Right Tick for the Close). Otherwise they might just plot straight lines.

Regards,

ABCTG

below is the line of code the error occurs. my cursor jumps between plotpb and the bracket --->plotpb[ <--- shown here when I double click the error.

plotpb[highBarsAgo](H[highBarsAgo],L[highBarsAgo],"",sellColor);
alert("Scalper Sell");

I don't know what to put based on your previous post. I need things spelled out, so to speak, when I comes to coding.

Anything worth doing is worth overdoing, moderation is for cowards
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #4 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,433 since Apr 2013
Thanks Given: 481
Thanks Received: 1,627

Warmachine,

your code snippet it the paint bar consists of two values - the high and the low. Based on what I wrote above you would have to turn this into two separate plots (Plot1 and Plot2 for example), where one plots the value of H[highBarsAgo] and the second one the value of L[highBarsAgo].

In Tradestation you'd have to format the first plot to be of the style "Bar High" (and not a cross, dot or line) and the second one to "Bar Low". Settings these two formats will tell TS to draw a bar using the two values for the High and Low. I don't know how you format the plots within OEC, so I am afraid I can't help you with that.

Regards,

ABCTG

Follow me on Twitter Reply With Quote




Last Updated on February 9, 2017


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts