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

Everything posted by nuno-online

  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
  16. Is there another solution to save the results of the current bar until it is complete ? apparently, it's impossible with ADE Nuno
  17. Hi Zdo thank you for your help what do you mean about "Update value intrabar" (tick by tick)? In screenshots as you can see the 2 indicators are "update on every tick Have you an example about best practices: i just want to update (at every tick )DailyAvg on my 5 min chart. "Best practices: insert code in Sender to only save / ‘send’ DailyAvg when it changes by a certain user defined tolerance or something. That way it’s not updating AvgMap on every tick on the daily chart…." Nuno
  18. Hi, I am using ADE to transfer an indicator information from a daily chart to an intraday chart. That's ok for this In my 5min Chart, i have the information (the value of my indicator) for the last daily bar closed. Is it possible to have the information for this last bar even if the bar isn't closed? for exemple, today (01 Oct 2012) i have the daily indicator value for the last bar closed (28 Setp 2012) I would like to have the daily indicator value for the last bar even if this bar isn't closed (01 Oct 2012) is it possible? Do i have tu use IntrabarPersist? ... How ? here is the indicator // NR_ADE_Sender indicator Vars: Class("DailyAvg") , AvgMap(MapSN.New), MA(0); // CACULATE MOVING AVERAGE MA = AverageFc(c,50); //Store the data we are interested in into AvgMap Value1 = MapSN.Put(AvgMap,"DailyAvg", MA); //Use ADE to store for current symbol and bar interval Value1 = ADE.PutBarinfo(class, GetsymbolName, ADE.Barinterval, ADE.BarID, AvgMap); //Plot daily average on daily chart Plot1(MA, "Av", DarkBlue); // NR_ADE_Reciver indicator Vars: Interval(0), Class("DailyAvg"), AvgMap(Mapsn.new), value1(0), value2(0); value1 = Ade.GetBarInfo(Class, GetSymbolName, Interval, Ade.BarID, AvgMap); value2 = MapSN.Get(AvgMap, "DailyAvg"); Plot1(value2, "DailyAvg", Darkblue); Thank you for your help Nuno ade_test.pla
  19. salut aaa, merci pour cette reponse très claire pour le moment, je suis resté sur la solution que tu as décrite Pour un graph Avec MC : Une solution est d'Utiliser plusieurs instruments à des résolutions superieurs en "subchart > Hide" dont les valeurs des indicateurs sont toutes identiques. Mon but à travers ce sujet était de trouver une solution pour afficher des indicateurs calculés en daily (et donc des setups) sur un radarscreen intraday pour mieux rentrer en position cordialement Nuno
  20. Thank you Datakeyword i will check the url can you give me one example? Nuno
  21. The French market open at 9:00 and close at 17:30 => 8:5 hours = Multiple for inputs?? A daily Macd (12,26,9) is it more or less the same as a intraday (1hour) macd (102, 221, 9)? 12 * 8:5 hours = 102 26 * 8:5 hours = 221 what do you think? Nuno
  22. Tams serouisly what do you think: Daily Macd have to work as a direct multiple of the current chart's bar interval (1 hour). How to define the "multiple" for Macd 12 26 9 for example The French market open at 9:00 and close at 17:30 => 8:5 hours = Multiple for inputs??
  23. thank you Tams but i have about 100 stocks in my Multicharts 's scanner I 'd like to have daily macd for all the stocks A friend tells me : Daily Macd have to work as a direct multiple of the current chart's bar interval (1 hour). How to define the "multiple" for Macd 12 26 9 for example Nuno
  24. Tams i know how to do this for charts but for radarscreen , that's seems different We can't use data2 Can you tell about which post you think? Perhaps have you one example to help me
  25. Hi Tams do you think : - it's possible to create daily MACD with Intraday data for radarscreen? - or it's to diificult to code this indicator? Nuno
×
×
  • Create New...

Important Information

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