Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

nuno-online

Members
  • Content Count

    51
  • Joined

  • Last visited

Personal Information

  • First Name
    Nuno
  • Last Name
    R.
  • City
    France
  • Country
    France
  • Gender
    Male

Trading Information

  • Vendor
    No
  • Trading Platform
    Multicharts

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hello i always have the same error Any help would be apprecied here the screenshot about what i want to do: The graph below shows a 5-year moving average (geometric average) of the next-day returns on the S&P 500 following an up day (red) and a down day (blue) from 1950 to 06/2008. (1) returns have been normalized by subtracting the average return of all days in each observation period to remove the influence of bull vs bear markets, (2) averages are geometric. Nuno
  2. Hello I need help about my study (for a daily chart) I want to insert in the study a 2 year moving average (geometric mean) of the next-day returns following an up day and a down day here is the code: with an error (Floating-point Invalid Operation Exception) what do you think? Inputs : Price(Close), GeometricMeanLength(500); Variables: PriceUp(False), PriceDn(False), NextDayReturnUp(0), CounterUp(0), NextDayReturnUpGeometricMean(0), NextDayReturnDn(0), CounterDn(0), NextDayReturnDnGeometricMean(0); Arrays: NextDayReturnUpDate[1000](0), NextDayReturnUpBar[1000](0), NextDayReturnUpVal[1000](0), NextDayReturnDnDate[1000](0), NextDayReturnDnBar[1000](0), NextDayReturnDnVal[1000](0); PriceUp = Price[1] > Price[2]; PriceDn = Price[1] <= Price[2]; If PriceUp then begin NextDayReturnUp = ((Price-Price[1])/Price[1])*100; For Value1 = 0 to GeometricMeanLength begin NextDayReturnUpDate[1000-Value1] = NextDayReturnUpDate[1000-Value1]; NextDayReturnUpBar[1000-Value1] = NextDayReturnUpBar[1000-Value1]; NextDayReturnUpVal[1000-Value1] = NextDayReturnUpVal[1000-Value1]; end; NextDayReturnUpDate[0] = Date; NextDayReturnUpBar[0] = BarNumber; NextDayReturnUpVal[0] = NextDayReturnUp; CounterUp = CounterUp + 1; end; If CounterUp > GeometricMeanLength then NextDayReturnUpGeometricMean = GeometricMean(NextDayReturnUp, GeometricMeanLength); If PriceDn then begin NextDayReturnDn = ((Price-Price[1])/Price[1])*100; For Value1 = 0 to GeometricMeanLength begin NextDayReturnDnDate[1000-Value1] = NextDayReturnDnDate[1000-Value1]; NextDayReturnDnBar[1000-Value1] = NextDayReturnDnBar[1000-Value1]; NextDayReturnDnVal[1000-Value1] = NextDayReturnDnVal[1000-Value1]; end; NextDayReturnDnDate[0] = Date; NextDayReturnDnBar[0] = BarNumber; NextDayReturnDnVal[0] = NextDayReturnDn; CounterDn = CounterDn + 1; end; If CounterDn > GeometricMeanLength then NextDayReturnDnGeometricMean = GeometricMean(NextDayReturnDn, GeometricMeanLength); Plot1( NextDayReturnUp, "NextDayReturnUp" ); Plot2( NextDayReturnDn, "NextDayReturnDn" ); plot3(0, "Zero"); Plot4( NextDayReturnUpGeometricMean, "NextDayReturnUpGeometricMean"); Plot5( NextDayReturnDnGeometricMean , "NextDayReturnDnGeometricMean"); and the geometric mean function { Geometric Mean } Inputs: Price(NumericSeries), Length(NumericSimple); Variables: Product(0), ix(0); Product = 1; For ix = 0 to Length-1 begin Product = Product * Price[ix]; end; GeometricMean = Power(Product, 1/Length); thank you Nuno
  3. Hello When loading my indicator over the chart, i got an error message: Error in study " Name of my study" : {Exception} Opération en virgule flottante non valide) How do I debug that. Variables: Position(0); Position= absvalue(Open-((High+Low)/2)) / (High-Low); If (High-Low) <> 0 then Plot1(Position, "Position"); Any help appreciated Nuno
  4. Is there anyone who can help me to "translate" this idea en easylanguage? I would to compare the angle of a horizontal line with the angle of the 100 per MA (example linear regression) over a given length and if the deviation is less than a given percentage(say 5%-10%), then the 100 per MA would be considered to be flat. @zdo The 100 ma can help me to detect +/- flat bollinger bands as support and resistance thank you
  5. Having inputs that are dynamic is a best solution i think My goal: detect flat bollinger bands when the moving average 100 is flat
  6. BlueHorseshoe That's great! Thank you for your help Do you think it's possible to "automaticaly" determine threshold value depending of which stock ou future you trade?
  7. BlueHorseshoe here a screenshot with a 100 moving average in the rectangle the moving average is +/- flat how to detect this situation with an indicator?
  8. Hi everyone I am wondering if you could help me to detect a flat moving average Thank you in advance
  9. hi BlueHorseshoe thank for your help i know now that's difficult to Draw a Descriptive Label for Each Row of Dots in an Indicator Panel
  10. BlueHorseshoe, Please, can you send me an example to "pad" text to reposition it? Nuno
  11. Thank you BlueHorseshoe I would like an example about "pad" text to reposition it nuno
  12. Sorry, Tams, i didn't find an answer for easylanguage Someone answered for ninjatrader Perhaps can you help me or give me some sample code that could help me out?
  13. hello With Easylanguage, I would like to draw a descriptive label for each row of dots in an indicator panel. It is not an issue drawing the text to the right of the plot using DrawText but there is apparently no parameter to draw it to the left of the row (so that the label is always visible even if I scroll the price chart to the left). Any good example out there or some sample code that could help me out? Thanks! Nuno
  14. hi aaa JAM Higher Timeframe Pack see to be a good solution I understand that ADE doesn't send information tick by tick but "bar by bar" Thank you very much Nuno ps: je ne savais pas que tu parles français ; merci pour ton aide!
  15. Thank you Zdo i will try your suggestion with data2 About ADE, i did not tried using a 1440 minute chart instead of the daily Nuno
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.