NexusFi: Find Your Edge


Home Menu

 





Coding an daily indicator on a intraday chart


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one BenosBanderos with 6 posts (3 thanks)
    2. looks_two nikke with 6 posts (0 thanks)
    3. looks_3 SammyD with 2 posts (0 thanks)
    4. looks_4 johni with 2 posts (0 thanks)
    1. trending_up 11,624 views
    2. thumb_up 3 thanks given
    3. group 6 followers
    1. forum 18 posts
    2. attach_file 0 attachments




 
Search this Thread

Coding an daily indicator on a intraday chart

  #11 (permalink)
nikke
grandiose
 
Posts: 34 since Aug 2010
Thanks Given: 5
Thanks Received: 6


BenosBanderos View Post
Why not? Are you getting an error in when compiling? What is it?

Yea, it doesnt compile with the LowD there.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Trade idea based off three indicators.
Traders Hideout
Cheap historycal L1 data for stocks
Stocks and ETFs
MC PL editor upgrade
MultiCharts
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
  #12 (permalink)
 BenosBanderos 
Canberra
 
Experience: Beginner
Platform: MultiCharts
Trading: AUD/USD
Posts: 31 since Mar 2012
Thanks Given: 23
Thanks Received: 22

Ok, there'll be an error under the build tab in the editor. Can you copy it in?

Edit: Actually you probably just need to add a parameter for the number of days back - LowD(0)

https://help.tradestation.com:443/09_00/elword/function/lowd_function_.htm

Reply With Quote
  #13 (permalink)
nikke
grandiose
 
Posts: 34 since Aug 2010
Thanks Given: 5
Thanks Received: 6



BenosBanderos View Post
Ok, there'll be an error under the build tab in the editor. Can you copy it in?

Edit: Actually you probably just need to add a parameter for the number of days back - LowD(0)

LowD (Function)

Hi,

Didnt work with a number either. I think if there would be a number it would somehow have to indicate that its a number-series that it would have to calculate the regressionline on.

The error without a number:
causal study: (Function)

The error with a number: LinearRegAngle(LowD(2), 9)

causal study: (Function)

Reply With Quote
  #14 (permalink)
 BenosBanderos 
Canberra
 
Experience: Beginner
Platform: MultiCharts
Trading: AUD/USD
Posts: 31 since Mar 2012
Thanks Given: 23
Thanks Received: 22

You may just need to declare it first. I use value instead of var so you don't need to declare the type with the "variables:" preample. So something like this:

 
Code
value1 = LowD(2);
value2 = LinearRegAngle(value1, 9);
You can always check the function works at all with the output tab:

 
Code
MessageLog("Does LowD work? ",value1);

Reply With Quote
Thanked by:
  #15 (permalink)
nikke
grandiose
 
Posts: 34 since Aug 2010
Thanks Given: 5
Thanks Received: 6


BenosBanderos View Post
You may just need to declare it first. I use value instead of var so you don't need to declare the type with the "variables:" preample. So something like this:

 
Code
value1 = LowD(2);
value2 = LinearRegAngle(value1, 9);
You can always check the function works at all with the output tab:

 
Code
MessageLog("Does LowD work? ",value1);

Hi,

Thank you for your help, I had given up but it got me really investigating it. It works both with a number and a variable now. Additionally I had to restart the PL editor, for some reason it had gotten stuck and wouldnt compile even with the number there. After a restart it compiles with the same syntax.

Reply With Quote
  #16 (permalink)
 BenosBanderos 
Canberra
 
Experience: Beginner
Platform: MultiCharts
Trading: AUD/USD
Posts: 31 since Mar 2012
Thanks Given: 23
Thanks Received: 22


nikke View Post
Hi,

Thank you for your help, I had given up but it got me really investigating it. It works both with a number and a variable now. Additionally I had to restart the PL editor, for some reason it had gotten stuck and wouldnt compile even with the number there. After a restart it compiles with the same syntax.

Glad to be of assistance Nikke.

Reply With Quote
  #17 (permalink)
nikke
grandiose
 
Posts: 34 since Aug 2010
Thanks Given: 5
Thanks Received: 6


BenosBanderos View Post
Glad to be of assistance Nikke.

Hmm..
Actually it was a bit too early.
It compiles ok, but the logic doesnt work. It probably now just uses the 2 there for all numbers instead of using a series of numbers for the regressionline.

Reply With Quote
  #18 (permalink)
 BenosBanderos 
Canberra
 
Experience: Beginner
Platform: MultiCharts
Trading: AUD/USD
Posts: 31 since Mar 2012
Thanks Given: 23
Thanks Received: 22

Seems to work ok for me in an indicator. Signal should work exactly the same:

 
Code
value1 = LowD(0);
value2 = LinearRegAngle(value2, 9);
Plot1(value2);
..prints a wavy line.

Note LinearRegAngly can take a number or a series: https://help.tradestation.com:443/08_08/elword/function/linearregangle_function_.htm

Reply With Quote
  #19 (permalink)
nikke
grandiose
 
Posts: 34 since Aug 2010
Thanks Given: 5
Thanks Received: 6


BenosBanderos View Post
Seems to work ok for me in an indicator. Signal should work exactly the same:

 
Code
value1 = LowD(0);
value2 = LinearRegAngle(value2, 9);
Plot1(value2);
..prints a wavy line.

Note LinearRegAngly can take a number or a series: LinearRegAngle (Function)

Unfortunately this did not work for me in the signal, it just gives the angle =0 all the time for some reason.
No biggie though, can work around it.

Reply With Quote




Last Updated on March 20, 2012


© 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