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
Content Type
Profiles
Forums
Calendar
Articles
Everything posted by nuno-online
-
Help to create daily MACD with Intraday data
nuno-online replied to nuno-online's topic in Coding Forum
Prathapjay Sorry, i don't understand I want to use this indicator in a scanner like radarscreen or multicharts and not in a chart can you explain me how to do? thanks Nuno -
Hi is it possible to create a daily Macd with intraday data (to use in radarscreen)? Above , i have day's Open/High/Low/Close in a indicator but i don't now how to do now! Thank you for your help Nuno Arrays: Day.Open[10](00), Day.High[10](00), Day.Low[10](00), Day.Close[10](00); Vars : MaxSize (10), Loop(00), Start(FALSE) ; If Date[00] > Date[01] then begin If Start then begin For Loop = MaxSize DownTo 01 begin Day.Open[Loop] = Day.Open[Loop - 01]; Day.High[Loop] = Day.High[Loop - 01]; Day.Low[Loop] = Day.Low[Loop - 01]; Day.Close[Loop] = Day.Close[Loop - 01]; end; { for loop } Plot1[01] (Day.Open[00], "Open ") ; { Left Tic } Plot2[01] (Day.High[00], "High ") ; { Bar High } Plot3[01] (Day.Low[00], " Low ") ; { Bar Low } Plot4[01] (Day.Close[00], "Close") ; { Right Tic } end; { we have had at least one complete day } Day.Open[00] = Open ; Day.High[00] = High ; Day.Low[00] = Low ; Day.Close[00] = Close ; If Start = FALSE then Start = TRUE ; end ; { first bar of a new day } If High > Day.High[00] then Day.High[00] = High ; If Low < Day.Low[00] then Day.Low[00] = Low ; Day.Close[00] = Close ;
-
Easylanguage: Function to Plot Text Verticaly
nuno-online replied to nuno-online's topic in Coding Forum
I found MidStr Returns a part, starting from a specified position and of a specified length, of a specified string expression. Usage MidStr("String",Pos,Num) Where: String - a string expression the specified part is to be taken from Pos - a numerical expression specifying the position, from the left side of the string, of the starting character of the part Num - a numerical expression specifying the length, in characters, of the part -
Easylanguage: Function to Plot Text Verticaly
nuno-online replied to nuno-online's topic in Coding Forum
Hi EasyTrader_I thank you for your help! I will start with your code do you know if there is a function to plot the first letter of a word, the second letter .... whatever the word is ? Nuno -
Hi is there a function to plot text verticaly above the bar (or below the bar)? thank you Nuno
-
one idea how to help me?
-
yes i installed it in my computer
-
yes of course! the indicator to plot data Inputs: Bollinger.Price( Close ), Bollinger.Length( 20 ), Bollinger.NumDevsUp( 2 ), Bollinger.NumDevsDn( -2 ); Variables: Bollinger.Avg(0),Bollinger.Sd(0),Bollinger.UpperBand(0),Bollinger.LowerBand(0), //used to pass data to ADE Class("ADE.Bollinger.UpperBand"), InfoMap(MapSN.New), Class1("ADE.Bollinger.LowerBand"), InfoMap1(MapSN.New), Ade.Bollinger.UpperBand(0), Ade.Bollinger.LowerBand(0); Bollinger.Avg = AverageFC( Bollinger.Price, Bollinger.Length) ; Bollinger.Sd = StandardDev( Bollinger.Price, Bollinger.Length, 1 ) ; Bollinger.UpperBand = Bollinger.Avg + Bollinger.NumDevsUp* Bollinger.Sd; Bollinger.LowerBand = Bollinger.Avg + Bollinger.NumDevsDn* Bollinger.Sd; Plot1(Bollinger.Avg, "MidLine",darkgray) ; Condition1 = Bollinger.UpperBand >= Bollinger.UpperBand[1]; Condition2 = Bollinger.LowerBand >= Bollinger.LowerBand[1]; If Condition1 then begin Plot2[1]( Bollinger.UpperBand[1], "UpperBand",green); Plot2( Bollinger.UpperBand, "UpperBand",green); end else begin Plot2[1]( Bollinger.UpperBand[1], "UpperBand",red); Plot2( Bollinger.UpperBand, "UpperBand",red); end; If Condition2 then begin Plot3[1]( Bollinger.LowerBand[1], "LowerBand",green); Plot3( Bollinger.LowerBand, "LowerBand",green); end else begin Plot3[1]( Bollinger.LowerBand[1], "LowerBand",red); Plot3( Bollinger.LowerBand, "LowerBand",red); end; // Retrieve the info for the current symbol and bar interval into InfoMap Value33 = ADE.GetBarInfo(Class, GetSymbolName, ADE.Daily, ADE.BarID, InfoMap); Value44 = ADE.GetBarInfo(Class1, GetSymbolName, ADE.Daily, ADE.BarID, InfoMap1); // Fetch the values from the InfoMap into variables Ade.Bollinger.UpperBand = MapSN.Get(InfoMap, "ADE.Bollinger.UpperBand"); Ade.Bollinger.LowerBand = MapSN.Get(InfoMap1, "ADE.Bollinger.LowerBand"); Plot4(Ade.Bollinger.UpperBand, "Ade.BB.Up"); Plot5(Ade.Bollinger.LowerBand, "Ade.BB.Dn"); the indicator to save data Inputs: Bollinger.Price( Close ), Bollinger.Length( 20 ), Bollinger.NumDevsUp( 2 ), Bollinger.NumDevsDn( -2 ); Variables: Bollinger.Avg(0),Bollinger.Sd(0),Bollinger.UpperBand(0),Bollinger.LowerBand(0), //used to pass data to ADE Class("ADE.Bollinger.UpperBand"), InfoMap(MapSN.New), Class1("ADE.Bollinger.LowerBand"), InfoMap1(MapSN.New), Ade.Bollinger.UpperBand(0), Ade.Bollinger.LowerBand(0); Bollinger.Avg = AverageFC( Bollinger.Price, Bollinger.Length) ; Bollinger.Sd = StandardDev( Bollinger.Price, Bollinger.Length, 1 ) ; Bollinger.UpperBand = Bollinger.Avg + Bollinger.NumDevsUp* Bollinger.Sd; Bollinger.LowerBand = Bollinger.Avg + Bollinger.NumDevsDn* Bollinger.Sd; Plot1(Bollinger.Avg, "MidLine",darkgray) ; Condition1 = Bollinger.UpperBand >= Bollinger.UpperBand[1]; Condition2 = Bollinger.LowerBand >= Bollinger.LowerBand[1]; If Condition1 then begin Plot2[1]( Bollinger.UpperBand[1], "UpperBand",green); Plot2( Bollinger.UpperBand, "UpperBand",green); end else begin Plot2[1]( Bollinger.UpperBand[1], "UpperBand",red); Plot2( Bollinger.UpperBand, "UpperBand",red); end; If Condition2 then begin Plot3[1]( Bollinger.LowerBand[1], "LowerBand",green); Plot3( Bollinger.LowerBand, "LowerBand",green); end else begin Plot3[1]( Bollinger.LowerBand[1], "LowerBand",red); Plot3( Bollinger.LowerBand, "LowerBand",red); end; //ADE // Put the information we want to store in our InfoMap Value1 = MapSN.Put(InfoMap, "ADE.Bollinger.UpperBand", Bollinger.UpperBand); Value2 = MapSN.Put(InfoMap1, "ADE.Bollinger.LowerBand", Bollinger.LowerBand); // Tell ADE to store this info for the current symbol and bar interval Value1 = ADE.PutBarInfo(Class, GetSymbolName, ADE.Daily, ADE.BarID, InfoMap); Value2 = ADE.PutBarInfo(Class1, GetSymbolName, ADE.Daily, ADE.BarID, InfoMap1); NR
-
Thanks Tams have you an example? in my code i use ADE where can i find an example with elcollections
-
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 1hour 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 (12 january 2010) i have the daily indicator value for the last bar closed (11 january2001) I would like to have the daily indicator value for the last bar even if this bar isn't closed (12 january 2010) is it possible? NR
-
Thank you BlowFish for your reply here a reply posted by TJ in another forum {in the Format Study window: set the plot1 and plot2 TYPE to Bar High and Bar Low. set the plot weight to thick. } inputs: BollingerPrice( Close ), TestPriceUBand( Close ), TestPriceLBand( Close ), Length( 20 ), NumDevsUp( 2 ), NumDevsDn( -2 ), Displace( 0 ) ; variables: var0( 0 ), var1( 0 ), var2( 0 ), var3( 0 ) ; var0 = AverageFC( BollingerPrice, Length ) ; var1 = StandardDev( BollingerPrice, Length, 1 ) ; var3 = var0 + NumDevsUp * var1 ; var2 = var0 + NumDevsDn * var1 ; condition1 = Displace >= 0 or CurrentBar > AbsValue( Displace ) ; if condition1 then begin Plot1[Displace]( var3, "bar high" ) ; Plot2[Displace]( var2, "bar low" ) ; Plot4[Displace]( var3, "UpperBand" ) ; Plot5[Displace]( var2, "LowerBand" ) ; Plot6[Displace]( var0, "MidLine" ) ; if Displace <= 0 then begin condition1 = TestPriceLBand crosses over var2 ; if condition1 then Alert( "Price crossing over lower price band" ) else begin condition1 = TestPriceUBand crosses under var3 ; if condition1 then Alert( "Price crossing under upper price band" ) ; end; end ; end ;
-
Can someone who use Multicharts tell me if this is possible with MC: put a color beetween Bollinger Band Up and BB Down thank you
-
Hi is this possible to do this in MC - Put a color beetween Bollinger Band Up and BB Down - Put a color beetween Bollinger Bands and for example Keltner Bands Please see screenshots
-
EL: Using ADE to Transfer Data Between Charts ERROR
nuno-online replied to nuno-online's topic in Coding Forum
Thank you VERY MUCH Blu-Ray Nuno- 6 replies
-
- ade
- elcollections
-
(and 1 more)
Tagged with:
-
EL: Using ADE to Transfer Data Between Charts ERROR
nuno-online replied to nuno-online's topic in Coding Forum
Blu-Ray 1/ the Long term chart is my daily chart (the exporting chart) the Short term chart is my 60 min chart, (the importing chart) 2/ I will try your example. Can you explain me why was incorrect in my code why: - On your first indicator , replace the words ADE.BarInterval to ADE.Daily - on your second indicator replace the word interval to ADE.Daily 3/ "Just out of curiosity, why are you using ADE for the pivots when you could get the same results using a normal pivot point indicator ...... or are you just wanting to learn about ADE ?" I want to learn about ADE and how importing daily values in a 60 min chart without ADE Nuno- 6 replies
-
- ade
- elcollections
-
(and 1 more)
Tagged with:
-
EL: Using ADE to Transfer Data Between Charts ERROR
nuno-online replied to nuno-online's topic in Coding Forum
i want to plot yesterday daily Pivot , supports an resistances in 60 min Chart I inserted the first indicator 'NR_Pivots Indicator' in a daily chart and the second indicator 'NR_PivotsADE Indicator' in a 60 min chart in the NR_PivotsADE Indicator is the imput correct? { *** NR_PivotsADE Indicator *** } Inputs: Interval(60); Nuno- 6 replies
-
- ade
- elcollections
-
(and 1 more)
Tagged with:
-
EL: Using ADE to Transfer Data Between Charts ERROR
nuno-online replied to nuno-online's topic in Coding Forum
Blu-Ray, thank you for your help i changed the code like you suggested to me but i always have the same error Error in "NR_PivotsADE" Company: "Bamboo" Error location : "ADE" Error category : "ADE Error" Short string : "ADE Error" Source string : "No data available for Class 'Pivot', AC, 60min" here is the first indicator: { *** NR_Pivots Indicator *** } Vars: Pivot(0), Resistance1(0), Resistance2(0), Resistance3(0), Support1(0), Support2(0), Support3(0), Class("Pivot"), InfoMap(MapSN.New), //used to pass data to ADE Class1("Resistance1"), InfoMap1(MapSN.New), Class2("Resistance2"), InfoMap2(MapSN.New), Class3("Resistance3"), InfoMap3(MapSN.New), Class4("Support1"), InfoMap4(MapSN.New), Class5("Support2"), InfoMap5(MapSN.New), Class6("Support3"), InfoMap6(MapSN.New); Pivot = ( Low + High + Close ) / 3; Resistance1 = ( Pivot * 2 ) - Low; Resistance2 = Pivot + Range; Resistance3 = Resistance1 + Range; Support1 = ( Pivot * 2 ) - High; Support2 = Pivot - Range; Support3 = Support1 - Range; // Put the information we want to store in our InfoMap Value9 = MapSN.Put(InfoMap, "Pivot", Pivot); Value1 = MapSN.Put(InfoMap1, "Resistance1", Resistance1); Value2 = MapSN.Put(InfoMap2, "Resistance2", Resistance2); Value3 = MapSN.Put(InfoMap3, "Resistance3", Resistance3); Value4 = MapSN.Put(InfoMap4, "Support1", Support1 ); Value5 = MapSN.Put(InfoMap5, "Support2", Support2); Value6 = MapSN.Put(InfoMap6, "Support3", Support3); // Tell ADE to store this info for the current symbol and bar interval Value10 = ADE.PutBarInfo(Class, GetSymbolName, ADE.BarInterval, ADE.BarID, InfoMap); Value11 = ADE.PutBarInfo(Class1, GetSymbolName, ADE.BarInterval, ADE.BarID, InfoMap1); Value12 = ADE.PutBarInfo(Class2, GetSymbolName, ADE.BarInterval, ADE.BarID, InfoMap2); Value13 = ADE.PutBarInfo(Class3, GetSymbolName, ADE.BarInterval, ADE.BarID, InfoMap3); Value14 = ADE.PutBarInfo(Class4, GetSymbolName, ADE.BarInterval, ADE.BarID, InfoMap4); Value15 = ADE.PutBarInfo(Class5, GetSymbolName, ADE.BarInterval, ADE.BarID, InfoMap5); Value16 = ADE.PutBarInfo(Class6, GetSymbolName, ADE.BarInterval, ADE.BarID, InfoMap6); Plot1( Pivot[1], "PP"); plot2( Resistance1[1], "R1"); Plot3( Resistance2[1], "R2"); Plot4( Resistance3[1], "R3"); Plot5( Support1[1], "S1"); Plot6( Support2[1], "S2"); Plot7( Support3[1], "S3"); the second indicator: { *** NR_PivotsADE Indicator *** } Inputs: Interval(60); Vars: Pivot(0), Resistance1(0), Resistance2(0), Resistance3(0), Support1(0), Support2(0), Support3(0), Class("Pivot"), InfoMap(MapSN.New), //used to pass data to ADE Class1("Resistance1"), InfoMap1(MapSN.New), Class2("Resistance2"), InfoMap2(MapSN.New), Class3("Resistance3"), InfoMap3(MapSN.New), Class4("Support1"), InfoMap4(MapSN.New), Class5("Support2"), InfoMap5(MapSN.New), Class6("Support3"), InfoMap6(MapSN.New); // Retrieve the info for the current symbol and bar interval into InfoMap Value9 = ADE.GetBarInfo(Class, GetSymbolName, Interval, ADE.BarID, InfoMap); Value1 = ADE.GetBarInfo(Class1, GetSymbolName, Interval, ADE.BarID, InfoMap1); value2 = ADE.GetBarInfo(Class2, GetSymbolName, Interval, ADE.BarID, InfoMap2); Value3 = ADE.GetBarInfo(Class3, GetSymbolName, Interval, ADE.BarID, InfoMap3); Value4 = ADE.GetBarInfo(Class4, GetSymbolName, Interval, ADE.BarID, InfoMap4); Value5 = ADE.GetBarInfo(Class5, GetSymbolName, Interval, ADE.BarID, InfoMap5); Value6 = ADE.GetBarInfo(Class6, GetSymbolName, Interval, ADE.BarID, InfoMap6); // Fetch the values from the InfoMap into variables Pivot = MapSN.Get(InfoMap, "Pivot"); Resistance1 = MapSN.Get(InfoMap1, "Resistance1"); Resistance2 = MapSN.Get(InfoMap2, "Resistance2"); Resistance3 = MapSN.Get(InfoMap3, "Resistance3"); Support1 = MapSN.Get(InfoMap4, "Support1"); Support2 = MapSN.Get(InfoMap5, "Support2"); Support3 = MapSN.Get(InfoMap6, "Support3"); // Plot them Plot1( Pivot[1], "PP"); plot2( Resistance1[1], "R1"); Plot3( Resistance2[1], "R2"); Plot4( Resistance3[1], "R3"); Plot5( Support1[1], "S1"); Plot6( Support2[1], "S2"); Plot7( Support3[1], "S3"); How can this work correctly? Thanks Nuno- 6 replies
-
- ade
- elcollections
-
(and 1 more)
Tagged with:
-
Hi i want to plot yesterday daily Pivot , supports an resistances in 1 hour Chart I installed all components as described : 1/ place the elcollections.dll in "C: \Program Files\TS Support\Multicharts\" 2/ imported and compiled ELCollections.eld 2/ install ADE in c:\ 4/ imported and compiled AllDataEverywhere.ELD I created an indicator that calculates daily Pivot , supports an resistances Vars: Pivot(0), Resistance1(0), Resistance2(0), Resistance3(0), Support1(0), Support2(0), Support3(0), Class("Pivot&Support1&Support2&Support3&Resistance1&Resistance2&Resistance3"), InfoMap(MapSN.New); // used to pass data to ADE Pivot = ( Low + High + Close ) / 3; Resistance1 = ( Pivot * 2 ) - Low; Resistance2 = Pivot + Range; Resistance3 = Resistance1 + Range; Support1 = ( Pivot * 2 ) - High; Support2 = Pivot - Range; Support3 = Support1 - Range; // Put the information we want to store in our InfoMap Value1 = MapSN.Put(InfoMap, "Pivot", Pivot); Value1 = MapSN.Put(InfoMap, "Resistance1", Resistance1); Value1 = MapSN.Put(InfoMap, "Resistance2", Resistance2); Value1 = MapSN.Put(InfoMap, "Resistance3", Resistance3); Value1 = MapSN.Put(InfoMap, "Support1", Support1); Value1 = MapSN.Put(InfoMap, "Support2", Support2); Value1 = MapSN.Put(InfoMap, "Support3", Support3); // Tell ADE to store this info for the current symbol and bar interval Value1 = ADE.PutBarInfo(Class, GetSymbolName, ADE.BarInterval, ADE.BarID, InfoMap); Plot1( Pivot[1], "PP"); plot2( Resistance1[1], "R1"); Plot3( Resistance2[1], "R2"); Plot4( Resistance3[1], "R3"); Plot5( Support1[1], "S1"); Plot6( Support2[1], "S2"); Plot7( Support3[1], "S3"); i inserted the indicator below in 1 HOUR CHART to get values Inputs: Interval(60); Vars: Class("Pivot&Support1&Support2&Support3&Resistance1&Resistance2&Resistance3"), // identifies our metrics with a unique name InfoMap(MapSN.New), // used to retrieve data from ADE Pivot(0), Resistance1(0), Resistance2(0), Resistance3(0), Support1(0), Support2(0), Support3(0); // Retrieve the info for the current symbol and bar interval into InfoMap Value1 = ADE.GetBarInfo(Class, GetSymbolName, Interval, ADE.BarID, InfoMap); // Fetch the values from the InfoMap into variables Pivot = MapSN.Get(InfoMap, "Pivot"); Resistance1 = MapSN.Get(InfoMap, "Resistance1"); Resistance2 = MapSN.Get(InfoMap, "Resistance2"); Resistance3 = MapSN.Get(InfoMap, "Resistance3"); Support1 = MapSN.Get(InfoMap, "Support1"); Support2 = MapSN.Get(InfoMap, "Support2"); Support3 = MapSN.Get(InfoMap, "Support3"); // Plot them Plot1( Pivot[1], "PP"); plot2( Resistance1[1], "R1"); Plot3( Resistance2[1], "R2"); Plot4( Resistance3[1], "R3"); Plot5( Support1[1], "S1"); Plot6( Support2[1], "S2"); Plot7( Support3[1], "S3"); I did apply the second indicator, but got the following messages: Error in "ADE Plot MarketDelta" Company: "Bamboo" Error location : "ADE" Error category : "ADE Error" Short string : "ADE Error" Source string : "No data available for Class('Pivot&Support1&Support2&Support3&Resistance1&Resistance2&Resistance3'), AC, 60min" How can this work correctly? Thanks
- 6 replies
-
- ade
- elcollections
-
(and 1 more)
Tagged with:
-
Low's Average of All Hourly Bars for Each Day
nuno-online replied to nuno-online's topic in Coding Forum
thank toy for your help i have error "Unknown Function" with Hour(time) here is the code If D > D[1] Then Value1 = 1 Else If Hour( Time ) <> Hour( Time )[1] Then Value1 = Value1 + 1; Value2 = Average( Low, Value1 ); Plot1( Value2 ); -
Hi, in easylanguage, how can i have the low's average of all hourly bars for each day? thank you for your help Nuno
-
I tried to modidy ZigZag Indicator code but the result isn't what i wanted I only want to plot points at the extremes of high / low An Upswing starts when a bar s high and low prices rise above the respective high and low prices of the latest Downswing. Prices then remain in an Upswing until such a bar that the high and low prices decline below the respective high and low prices of the highest bar of the Upswing. The highest price in the Upswing is called a TOP A Downswing starts when a bar s high and low prices decline below the respective high and low prices of the highest bar of the latest Upswing. Prices then remain in a Downswing until a bar high and low prices rise above the respective high and low prices of the lowest bar of the Downswing. The lowest price in the Downswing is called a BOTTOM. here is the screenshot that resume what i wanted I hope someone help me is it possible to do that
-
I am a MC User We define a change from an Uptrend to a Downtrend as a simple Downtrend combined with the low lower than the low recorded on the day of the highest bar of the latest Uptrend. We define a change from a Downtrend to an Uptrend as a simple Uptrend combined with the high greater than the high recorded on the day of the lowest bar of the latest Downtrend. ZigZag indicator is different