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.

  • Welcome Guests

    Welcome. You are currently viewing the forum as a guest which does not give you access to all the great features at Traders Laboratory such as interacting with members, access to all forums, downloading attachments, and eligibility to win free giveaways. Registration is fast, simple and absolutely free. Create a FREE Traders Laboratory account here.

flyingdutchmen

Offering Help

Recommended Posts

i am offering help here to everyone who is stuck with their EL code or has an idea

about some indikator/function/strategy which he thinks could be usefull to him/her

but does not know how to produce this.i am running ts2ki and i am pretty new to

this software, having recently quit my old easy language compatible software

tradesignal, so this should be a nice learning experience for me.

i will try to make anything you want, i must say i am better with complicated calculations

then i am with the socalled "fancy TRO kind of indikators" with hundreds of lines and

colors.please make sure if help is requested to be able to explane what you want me

to do for you, do not come with any MT4 skript or other language with a request of please

convert it to easy language so it can be used in tradestation.if you are not able to explane

what exactly you want it to do i will most likely not be able to help you.

if you prefere it to be not open to others send me a pm with your request, but i prefere to post the

solutions/scripts here in the tread so they could be of help to others that are maybe having similair

idea's or diffeculties in a later stage.

 

open to questions and requests

Edited by flyingdutchmen

Share this post


Link to post
Share on other sites

Good initiative FD. I always learn something when I help others.

 

I would request a mock up...

a picture is worth a thousand word.

 

 

 

(I think that's a Chinese saying)

Share this post


Link to post
Share on other sites
Good initiative FD. I always learn something when I help others.

 

I would request a mock up...

a picture is worth a thousand word.

 

 

 

(I think that's a Chinese saying)

 

your request is a mockup, note most of my work is of statistical nature.

i mainly run statistics on constant range bars to find high probability setups;

for this i have some scripts existing out mainly

homemade functions not providet by ts. i do not use traditional

TA that is widely known in most forums, if it has an name allready it is not for me.

i could show you a picture as requested but it will show you at most 2 simple

plots/lines which will not be very usefull to others.

like i mentioned before i could make a "fancy" indikator but i do not enjoy doing so are they are not of any help to me.let me see if i could find a script that i could share here,

just offering some help here

Share this post


Link to post
Share on other sites

in my haste to post... i missed the point...

 

I meant to request whoever requests help, a mock up chart of what is requested.

 

 

Thanks for your great offer... I think this community will be a strong one with your generous participation.

Edited by Tams

Share this post


Link to post
Share on other sites

personally, what I would find most helpful is some kind of example that walks through all the intricacies of arrays.

 

1) how to clear out an array for a given bar or new day

2) conversely, how to preserve the values in a current array and then expand on that array

3) how to set up a 'watch' for a loop counter

4) debugging array loops -- 'stepping into' the code

 

just kind of a tutorial on arrays in EL -- learning some tricks, some extra keywords and useful nuances along the way.

 

I know this is a general question --- but giving it a try anyway. I will do one for others once I am beyond 'EL-ignoramus' myself...

Share this post


Link to post
Share on other sites
personally, what I would find most helpful is some kind of example that walks through all the intricacies of arrays.

 

1) how to clear out an array for a given bar or new day

2) conversely, how to preserve the values in a current array and then expand on that array

3) how to set up a 'watch' for a loop counter

4) debugging array loops -- 'stepping into' the code

 

1) one must understand that after an array has been declared it has been declared

with a certain amount of index-places and a certain initial value at each of those index places.

these value's can not be

"cleared out". what one could do is give that specific index place in the array which

value you would like to be deleted/cleared out a number below the lowest number which you find

usable for your script, for example "-999999" and later loop trough that array to find only all value's ABOVE that

number and make only use of those value's.

 

because i am using the 2000i version i am not able to make use of all current array

functions and reserved words and most of the time must be creativ to find a way around

them to achieve the same outcome.

 

while using multi charts or one of the newer tradestation versions one could go around this

by declaring arrays as "dynamic".

dynamic arrays can be in or de-creased in size at a later stage by making use of

array_setmaxindex, this process wenn increasing the index places will set

those value's at the new index places just created inside this array to the initial value at what the array

initialy has been decleared.

one could sort the array before decreasing to have the number you would like to be erased at top ( highest index ).

 

 

i am not able to check this in 2000i but it gives you an idea about how to decrease arrays and erase specific values,

at the end of the code you should have created a decreased array which no longer holds the values that you found not

usefull anymore.


Array: MyArray[](0), { create dynamic array }
        MyDummyArray[100](0); { create dummy }


{ create index, set to 5 }
If CurrentBar = 1 Then 
Condition1 = Array_SetMaxIndex( MyArray, 5 );


{ fill with values if creating index to 5 has been succesfull }
If Array_GetMaxIndex( MyArray ) = 5 Then Begin
MyArray[0] = 5;
MyArray[1] = 3;
MyArray[2] = 1;
MyArray[3] = 7;
MyArray[4] = 9;
MyArray[5] = 4;
End;

{ now we would like to erase value 3 and 7 }
If CurrentBar = 1000 { or any other condition } Then
Begin

Value1 = 2; { we have chosen to decrease the dynamic array by 2 places, from 5 to 3 and we want te delete only value 3 and 7 }
Value2 = -1; { set initial counter to -1 }

For Value3 = 0 To Array_GetMaxIndex( MyArray ) { loop trough the still existing 5 index dynamic array }  Begin

If MyArray[Value3] <> 3 and MyArray[Value3] <> 7 Then Begin 
Value2 = Value2 + 1; { increase counter by 1, first step makes it set to 0 }
MyDummyArray[Value2] = MyArray[Value3]; { if value different then 3 or 7 then apply value to dummy array starting at index 0 }
End;

End;

Condition1 = Array_SetMaxIndex( MyArray, Array_GetMaxIndex( MyArray ) - Value1 ); { decrease in size }

For Value3 = 0 To Array_GetMaxIndex( MyArray ) Begin { loop trough new decreased array }
MyArray[Value3] = MyDummyArray[Value3]; { give back remaining values to new decreased array }
End;

value4 = 0;
For Value3 = 0 To Array_GetMaxIndex( MyArray ) Begin
If MyArray[Value3] = 3 or MyArray[Value3] = 7 Then Value4 = 1; { check if value 3 and 7 are part of the array and set a print statement to verify }
End;

Print( CurrentBar, Value4 ); { if succesfull then the print should show from barnumber 1000 a "0" if value 3 and 7 would be gone }

 

2) the most common way to keep writing in an array and dropping only the oldest value

of the index number above the highest index at which the value was decleared would be

to move/shift all value's back inside the array 1 index before which lets you drop only last value

and store the new value at index 0.

example

 

Array: MyArray[100](0); { create 101 index array with initial values set to 0 }

If { my condition ocours } Then
Begin

For Value1 = 100 { your max index } Down To 1
Begin
MyArray[Value1] = MyArray[Value1-1]; { shift back values 1 index and drop only last(first) value }
End;

MyArray[0] = AnyValue; { only write at index zero each time the condition ocourse at which you would like to store a new value }

End;

 

please define 3 & 4, what exactly do you wish to be doing, veryfing your own work by

using a "watch" ?

Edited by flyingdutchmen

Share this post


Link to post
Share on other sites

Hi

I am wondering if it would be possible to plot the number or frequency of large block trades? For example, could the frequency of blocks of 100 or greater contracts in the ES be plotted as a histogram? I am not swift enough in EL to know whether this could be done or not, but think it would be of value in identifying tops and bottoms

Share this post


Link to post
Share on other sites
Hi

I am wondering if it would be possible to plot the number or frequency of large block trades? For example, could the frequency of blocks of 100 or greater contracts in the ES be plotted as a histogram? I am not swift enough in EL to know whether this could be done or not, but think it would be of value in identifying tops and bottoms

 

http://www.traderslaboratory.com/forums/f56/volume-splitter-5824.html

Edited by flyingdutchmen

Share this post


Link to post
Share on other sites

thanks Dutch,

 

I looked over your code and saw how you did that with the dummyarray as something of a 'holding tank' for the array, seems obvious now but didn't know that is how you do it.

 

I didn't understand the use of 'condition1' -- there is just a resetting of the array there -- can you explain that a bit? why can't you just leave out the condition1= and instead just make the statement:

 

Array_SetMaxIndex( MyArray, Array_GetMaxIndex( MyArray ) - Value1 ); { decrease in size }

 

thx

 

 

edited 5:20pm EST

Share this post


Link to post
Share on other sites

that could very well be Frank, i am not certain as i do not have the possebility to

test the code in my version of ts; this is how i remember reading it.give it a try and verify it as an indicator and see what will happen.

i never use a code that way, i allways tend to set value's that i do not

wish to use anymore to an extreme number like -99999 which makes that further calcuations ignore them.

Share this post


Link to post
Share on other sites

flyingdutchmen, thanks for the offer of help with EL.

 

I do have a request but Im not sure if you can run this code on the TS version you have access to. Please let me know if you are able to do so and I will explain what I intend to to do.please run this TPO profile on a 30m Symbol that charts pit session only e.g.@ES.D or SPY, infact anything that starts at 0930 and close at 1615.

 

By the way I think you will enjoy this code as it invlolves statistical work.

 

please find the ELD below.

[sameTickOpt=True]

input:compress(1),len(30),letter1(1),txtcolr((rgb(0,0,255))),opncol (rgb(0,0,255)),closcol(rgb(0,0,255)),lastcol(rgb(0,0,128)),VAprcnt(.7),Valcol(rgb(180,180,0)),
Valsize(1),Stime(Sess1StartTime),IBColor(rgb(255,0,255)), IB_Size(0),IB_Style(tool_Solid), xx(2){moves IB line to the left X bars ago};

vars:lett("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"),t1(0),vsize(0),cpt(0),dl(0),
lcount(1),fp(0),daynum(0),d0(0),mid(0),dlo(0),pc(0),pc2(0),skp(0),labl(0),vala(0),vap(0),cp(0),t0(0),nuflag(0),
hh(0),ll(0),x(0),et(0), clet(""),curtxt(""),th(0),tl(0),tpstr("00"),tot(0),va(0),d2p(0),oldclet(""),
barhi(0),barlo(0),mintick(0),xpts(0),price(0),up(0),dn(0),oldup(0),olddn(0),flag(0),flag2(0),IBhigh(0),IBlow(0),IB(0);

array:pri[1000](0),tpo[1000](0),pristr[1000]("");


nuflag=0;
if t0 <= Sess1EndTime and t > Sess1EndTime and Sess2StartTime <> 0 then nuflag=1;
if d <> d0 and Sess2StartTime = Sess2EndTime then nuflag=1;
if t0=sess1endtime then nuflag=1;
if  currentbar=1  or nuflag=1   then begin
if currentbar=1 then begin
	vap=VAprcnt;
	vsize=mod(valsize+7,7);
	if vsize < 2  then value88=5 else value88=vsize;
	mintick = 1 point * minmove * compress; 
	xpts=500*mintick;
end;
lcount=letter1;
if currentbar > 1 then begin
	if valcol <> 0 and flag2=0 then begin
		mid=0;value23=0;
		cpt=tl;cp=tl + (th-tl)/2; {center of dist.}
		for x = tl to th begin 
			if pristr[x] <> "" then begin
				pristr[x]=nutpstr(tpo[x],pristr[x],pri[x]);
				value23=value23 + tpo[x]; {total tpo count}
				if tpo[x]=mid and x <= cp then cpt=x;
				if tpo[x]=mid and x>cp and(x-cp) < AbsValue(cp-cpt) then cpt=x;
				if tpo[x] > mid then begin
					cpt=x;
					mid = tpo[x];
				end;
			end;
		end;
		va=value23 * vap;

		x=mid;up=cpt;dn=cpt;
		while x < va begin
			value19=tpo[up+1]+tpo[up+2];  value20=tpo[dn-1]+tpo[dn-2];
			if value19 >= value20 then begin
				if x+tpo[up+1] >= va then begin
					x=x+tpo[up+1]; up=up+1;
				end else begin
					x=x+value19;  up=up+2;
				end;
			end else begin
				if x+tpo[dn-1] >= va then begin
					x=x+tpo[dn-1]; dn=dn-1;
				end else begin
					x=x+value20;  dn=dn-2;
				end;				
			end;
		end;	
		if up > th then up=th; if dn < tl then dn=tl;	
		up= fp+((up-500)*mintick);
		dn=fp+((dn-500)*mintick);
		value62=fp+((cpt-500)*mintick);
		labl= text_new(d2p,t1,dl-mintick,"VA:"+mp_str32(dn)+" "+mp_str32(up));
		TEXT_SETSTYLE(labl,0,2);	
		TEXT_SETCOLOR(labl,valcol);
		vala=TL_New(D2p,t1,up,D2p,t1,dn);
		TL_SetColor(vala,valcol);
		TL_SetSize(vala,vsize);

		value60=TL_New(D2p,t1,value62+mintick/15,D2p,t1,value62-mintick/15);				
		TL_SetColor(value60,valcol);
		TL_SetSize(value60,value88);
	end;
	pc2=0;
	for value4=tl to th begin
		price=fp+((value4-500)*mintick) ;					
		if price <= pc  then pc2=value4;  
	end;
	if pc2=0 then pc2=barlo;
	curtxt=pristr[pc2];
	if RightStr(curtxt,1) <> "<" then begin
		 text_setstring(pri[pc2],curtxt+" <");
		Text_SetColor(pri[pc2],closcol);
	end;
end; 
t1=t;
d2p=d;
labl=0;vala=0;
for value1=tl to th begin
	pristr[value1]="";
	tpo[value1]=0;
end;
clet=curletstr(stime,len,letter1);
oldclet=clet;
dlo=l;
fp=o; 
tpo[500]=1;
th=500;tl=500;
flag=0;                                   
pri[500]= text_new(d,t1,o,"   >"+clet);
pristr[500]="   >"+clet;
TEXT_SETSTYLE(pri[500],0,2);	
TEXT_SETCOLOR(pri[500],opncol);
hh=o;ll=o;mid=1;tot=1;value22=currentbar;
dl=l;
if d= JulianToDate(LastCalcJDate) then flag2=1;
end; 
clet=curletstr(stime,len,letter1) ;
t0=t;d0=d;pc=c;
barhi=intportion((xpts+h-fp+(mintick/10))/mintick);
barlo=ceiling((xpts+l-fp-(mintick/10))/mintick);
if barhi > th then th=barhi;
if barlo < tl then tl=barlo;
if l < dl then dl=l;
IF datacompression=0 and  currentbar  > value22 then begin
lcount=lcount+1;
if lcount=53 then lcount=1;
clet=midstr(lett,lcount,1) ;
hh=o;ll=o;flag=flag+1; 
end;
value22=currentbar;
IF datacompression = 1 and oldclet <> clet  then begin
hh=o;ll=o;flag=flag+1;
end;

for value4=barlo to barhi begin
price=fp+((value4-500)*mintick);
curtxt=pristr[value4]; 
if curtxt = ""   then begin
	tpo[value4]=1;
	pri[value4]= text_new(d2p,t1,price,"    "+clet);
	pristr[value4]="    "+clet;
	TEXT_SETSTYLE(pri[value4],0,2);	
	TEXT_SETCOLOR(pri[value4],txtcolr);
end else begin
	if RightStr(curtxt,1) <> clet then begin
		text_setstring(pri[value4],curtxt+clet);
		pristr[value4]=curtxt+clet;
		tpo[value4]=tpo[value4]+1;
	end;
end;
end;
if h>hh then hh=h;
if l < ll then ll = l;
{------------------------------------------------------------------------------------------}
if valcol <> 0  and  lastbaronchart  then begin
mid=0;value16=0;value23=0;
cpt=tl;cp=tl + (th-tl)/2; {center of dist.}
for x = tl to th begin 
if pristr[x] <> "" then begin
	pristr[x]=nutpstr(tpo[x],pristr[x],pri[x]); 
	value23=value23 + tpo[x]; {total tpo count}
	if tpo[x]=mid and x <= cp then cpt=x;
	if tpo[x]=mid and x>cp and(x-cp) < AbsValue(cp-cpt) then cpt=x;
	if tpo[x] > mid then begin
		cpt=x;
		mid = tpo[x];
	end;
end;
end;
va=value23 * vap;
if l < dlo  then begin
dlo=l;
price=fp+((tl-501)*mintick);
if labl <> 0 then Text_SetLocation(labl,d2p,t1,price);
end;
if labl =0 then begin
price=fp+((tl-501)*mintick);
labl= text_new(d2p,t1,price,"-");
TEXT_SETSTYLE(labl,0,2);	
TEXT_SETCOLOR(labl,valcol);
end;
if va <> 0 then begin
value61=value18; 
x=mid;up=cpt;dn=cpt;
while x < va begin
value19=tpo[up+1]+tpo[up+2];  value20=tpo[dn-1]+tpo[dn-2];
if value19 >= value20 then begin
	if x+tpo[up+1] >= va then begin
		x=x+tpo[up+1]; up=up+1;
	end else begin
		x=x+value19;  up=up+2;
	end;
end else begin
	if x+tpo[dn-1] >= va then begin
		x=x+tpo[dn-1]; dn=dn-1;
	end else begin
		x=x+value20;  dn=dn-2;
	end;				
end;
end;	
if up > th then up=th; if dn < tl then dn=tl;	
value18=cpt;
oldup=up;
olddn=dn;
up= fp+((up-500)*mintick);
dn=fp+((dn-500)*mintick);
if flag=1 then value63=t;
if up > dn and flag > 1  then begin
if vala = 0 then begin
	vala=TL_New(D2p,t1,up,D2p,t1,dn);
	TL_SetColor(vala,valcol);
	TL_SetSize(vala,vsize);
	value62=fp+((value18-500)*mintick);
	value60=TL_New(D2p,t1,value62+mintick/15,D2p,t1,value62-mintick/15);
	TL_SetColor(value60,valcol);
	TL_SetSize(value60,value88);
end else begin
	if oldup <> up then TL_SetBegin(vala,D2p,t1,up);
	if olddn <> dn then TL_SetEnd(vala,D2p,t1,dn);
end;
end;
if {value61 <> value18 and} flag > 1  then begin
value62=fp+((value18-500)*mintick);
TL_SetBegin(value60,D2p,t1,value62+mintick/15);
TL_SetEnd(value60,D2p,t1,value62-mintick/15);
end;
Text_SetString(labl,"VA:"+mp_str32(dn)+" "+mp_str32(up));
end;
end;

if lastcol > 0   then begin
if value10 = 0 and currentbar=3 then begin
value10=tl_new(value50,value51,c,d,t,c);
tl_setcolor(value10,lastcol);
tl_setsize(value10,0);
TL_SetExtLeft(value10,true);
end else if currentbar > 3 and LastBarOnChart   then begin
tl_setend(value10,d,t,c);
tl_setbegin(value10,value52,value53,c);
end;
value52=value50;value53=value51;
value50=d;value51=t;
end;

//the below is the Initial balance code, added at alater date.

//This is a bar counter.	
If date<>date[1]then Value1=barnumber[1];//
if currentbar>Value1 then Value2=Currentbar-Value1;	//


If Date<>Date[2] and value2=2 then begin
IBhigh=Highest(high,2);
IBlow=Lowest(low,2);
end;
if value2=2 then begin
     IB=TL_New(date[xx],time[xx],IBlow,date[xx],time[xx],IBhigh);
		TL_SetColor(IB,IBColor{getplotcolor(3)} );
		TL_SetSize(IB,IB_Size);
		TL_SetStyle(IB,IB_Style);
		TL_SetExtRight(IB,false);

end;

MPPUBLIC.ELD

Share this post


Link to post
Share on other sites

Sure....

I would like to have a version of the code that plots 3 horizontal trendlines.

1st trendline ValueHigh

2nd trendline ValueLow

3rd trendline POC

furthermore I would only want the trendlines plotted after the session has ended i.e. after the 1615 est close, Therfore no need to plot the current sessions value high,low, or poc.

and I would like to have removed the following....

the Text plot of the VH or VL, Removed

the Vertical yellow line that shows the VA...Removed

the TPO letters...removed

Simply remove everything and show only the three trnelines mentioned above.

 

Let me know If you can help with the above, greatly appreciated.

Share this post


Link to post
Share on other sites

pls give me some time on this one, i am not able to verify this piece of code; there are

to many words not being recognized by 2000i. this isnt a big issue from the looks of it you

simple need to delete all plot and text statements and add the three that you would like

to have on your chart from last session; but my guess is that will be to many variables left unused going that path.

if there is no need for them anymore then there will be no reason for them to remain in the script and being calculated.

this could take a bit, sorry.if anybody else is willing to give him an hand with this before i have it done i would not be mad

Share this post


Link to post
Share on other sites
pls give me some time on this one, i am not able to verify this piece of code; there are

to many words not being recognized by 2000i. this isnt a big issue from the looks of it you

simple need to delete all plot and text statements and add the three that you would like

to have on your chart from last session; but my guess is that will be to many variables left unused going that path.

if there is no need for them anymore then there will be no reason for them to remain in the script and being calculated.

this could take a bit, sorry.if anybody else is willing to give him an hand with this before i have it done i would not be mad

 

Thanks for giving it an effort and take your time.

 

if there is no need for them anymore then there will be no reason for them to remain in the script and being calculated.

 

I agree, no need to have them in script, just as long as the 3 trendlines for VH VL POC are plotted for the previous sessions that are loaded on the chart.

 

 

once again thankyou

Share this post


Link to post
Share on other sites

The VAH and VAL calculated by this indicator do not correspond to any of the MP sites that calculate them. I think the inclusion of overnight session data in the calculations may result in differences.

Share this post


Link to post
Share on other sites
The VAH and VAL calculated by this indicator do not correspond to any of the MP sites that calculate them. I think the inclusion of overnight session data in the calculations may result in differences.

 

Can you give me some websites that you checked so I can look at them. Also im not sure if you ran that above TPO indicator on a pitsession chart or a 24hr. chart as they will give different results.

 

thanks

Share this post


Link to post
Share on other sites

I am familiar with a different piece of code but uses the same algo for calculating the VA levels. In the past I've checked it against the method used on the Market Profile Calculator at the My Pivots website. The key I have found is to set the compression as close to the contract min. tick as possible without causing an Array Out-of-Bounds error which sometimes happens. I've "plucked" the VA levels out for plotting but for a different purpose. See http://www.traderslaboratory.com/forums/46/collections-easylanguage-5929-2.html#post65386

Share this post


Link to post
Share on other sites

ochie, for the Syock index symbols ES,YM, NQ I keep the compression set to 1 and I had checked the numbers with someone elses code (different TPO profile then the one I posted) and it matched exactly. Further more if the compression is set to less then 1 or > then 1 then one will get a TPO plot at a VALUE < then the min tick move or a TPO plot at value > a min tick move.

I have not checked the above TPO profile with other site to verify its accuracy but will do so soon.

As far as the link you posted for drawing the VA H and L I did not see a code for such...did I miss it??

Thanks much.

 

Backrob99, Thanks for posting the site for MP numbers.

 

 

Best regards

Edited by Mustang-

Share this post


Link to post
Share on other sites

Mustang,

 

ochie, for the Syock index symbols ES,YM, NQ I keep the compression set to 1 and I had checked the numbers with someone elses code (different TPO profile then the one I posted) and it matched exactly.
Yes, I see your point for the compression on the Indices. For my MC version and for the treasuries which are my main vehicles, the fractional worked best at the time.

 

 

As far as the link you posted for drawing the VA H and L I did not see a code for such...did I miss it??
No. Priority for that post was to demonstrate an application for ELCollections and the VA plots provided a good example.

 

 

For the VA plots you locate the variables within the MP code holding the VA levels just prior to creating a new TL.

 

 



 .
 .
 .
 up= fp+((up-500)*mintick);      // VAH
 dn=fp+((dn-500)*mintick);       // VAL
 if flag=1 then value63=t; 
 if up > dn and flag > 1  then begin 
        if vala = 0  then begin    
               vala=TL_New(d2p,t1,up,d2p,t1,dn);  
               TL_SetColor(vala,MyValcol);        
               TL_SetSize(vala,vsize);     
               value62=fp+((value18-500)*mintick); 

        value60=TL_New(d2p,t1,value62+mintick/15,d2p,t1,value62-mintick/15);  // POC        
               TL_SetColor(value60,MyValcol); 
               TL_SetSize(value60,value88); 

 .
 .
 .

Within the MP code create the ELCollections routines for the values to be placed globally.

 

 

.
.
.

 //************** Global Var Pass Area Begin ***************           

               MapID = MapNN.Share("MPLevels");
               Value1 = MapNN.Put(MapID,MP,up);  // VAH


               MapID = MapNN.Share("MPLevels2");
               Value2 = MapNN.Put(MapID,MP2,dn);  // VAL


               MapID = MapNN.Share("MPLevels3");
               Value3 = MapNN.Put(MapID,MP3,value62);  //POC

 .
 .
 .

Create the EL indicator using ELCollections to apply the values as plots.

 

 

 .
 .
 .
        MapID = MapNN.Share("MPLevels");
        Value1 = MapNN.Get(MapID,MP);    // VAH

        Plot1( Value1, "MapID" ) ;

        MapID = MapNN.Share("MPLevels2");  // VAL
        Value2 = MapNN.Get(MapID,MP2);

        Plot2( Value2, "MapID" );


        MapID = MapNN.Share("MPLevels3");
        Value3 = MapNN.Get(MapID,MP3);     // POC

        Plot3( Value3, "MapID" );
 .
 .
 .

 

At this point all that is needed is to add the additional variables in the var: lists.

 

I created this while learning the Collections routines so it may not be the most efficient.

 

 

 

 

Edited by ochie

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Topics

  • Posts

    • Date: 25th November 2024. New Secretary Cheers Markets; Trump Trade Eased. Asia & European Sessions:   Equities and Treasuries rise, as markets view Donald Trump’s choice of Scott Bessent for Treasury Secretary as a stabilizing decision for the US economy and markets. Bessent: Head of macro hedge fund Key Square Group, supports Trump’s tax and tariff policies but gradually. He is expected to focus on economic and market stability rather than political gains. His nomination alleviates concerns over protectionist policies that could escalate inflation, trade tensions, and market volatility. Asian stocks rose, driven by gains in Japan, South Korea, and Australia. Chinese equities fail to follow regional trends, presenting investors’ continued disappointment by the lack of strong fiscal measures to boost the economy. The PBOC keeps policy loan rates unchanged after the September cut. US futures also see slight increases. 10-year Treasury yields fall by 5 basis points to 4.35%. Nvidia dropped 3.2%, affected by its high valuation and influence on broader market trends. Intuit fell 5.7% after a disappointing earnings forecast. Meta Platforms declined 0.7% following the Supreme Court’s decision to allow a class action lawsuit over the Cambridge Analytica scandal. Key events this week: Japan’s CPI, as the BOJ signals a possible policy change at December’s meeting. RBNZ expected to cut its key rate on Wednesday. CPI & GDP from Europe will be released. Traders will focus on the Fed’s November meeting minutes, along with consumer confidence and personal consumption expenditure data, to assess potential rate cuts next year. Financial Markets Performance: The US Dollar declines as US Treasuries climb. Bitcoin recovers from a weekend drop, hovering around 98,000, having more than doubled in value this year. Analysts suggest consolidation around the 100,000 level before any potential breakthrough. EURUSD recovers slightly to 1.0463 from 1.0320 lows. Oil prices drop after the largest weekly increase in nearly two months, with ongoing geopolitical risks in Ukraine and the Middle East. UKOIL fell below $75 a barrel, while USOILis at $70.35. Iran announced plans to boost its nuclear fuel-making capacity after being censured by the UN, increasing the potential for sanctions under Trump’s administration. Israel’s ambassador to the US indicated a potential cease-fire deal with Hezbollah, which could ease concerns about Middle Eastern oil production, a region supplying about a third of the world’s oil. Russia’s war in Ukraine escalated with longer-range missile use, raising concerns about potential disruptions to crude flows. Citigroup and JPMorgan predict that OPEC may delay a planned increase in production for the third time during their meeting this weekend. Gold falls to $2667.45 after its largest rise in 20 months last week.Swaps traders see a less-than-even chance the central bank will cut rates next month. Higher borrowing costs tend to weigh on gold, as it doesn’t pay interest. Always trade with strict risk management. Your capital is the single most important aspect of your trading business. Please note that times displayed based on local time zone and are from time of writing this report. Click HERE to access the full HFM Economic calendar. Want to learn to trade and analyse the markets? Join our webinars and get analysis and trading ideas combined with better understanding of how markets work. Click HERE to register for FREE! Click HERE to READ more Market news. Andria Pichidi HFMarkets Disclaimer: This material is provided as a general marketing communication for information purposes only and does not constitute an independent investment research. Nothing in this communication contains, or should be considered as containing, an investment advice or an investment recommendation or a solicitation for the purpose of buying or selling of any financial instrument. All information provided is gathered from reputable sources and any information containing an indication of past performance is not a guarantee or reliable indicator of future performance. Users acknowledge that any investment in FX and CFDs products is characterized by a certain degree of uncertainty and that any investment of this nature involves a high level of risk for which the users are solely responsible and liable. We assume no liability for any loss arising from any investment made based on the information provided in this communication. This communication must not be reproduced or further distributed without our prior written permission.
    • SNAP stock, big day off support at https://stockconsultant.com/?SNAP
    • SBUX Starbucks stock, nice breakout, from Stocks to Watch at https://stockconsultant.com/?SBUX
    • INTC Intel stock settling at 24.25 double support area at https://stockconsultant.com/?INTC
    • CORZ Core Scientific stock, strong close, watch for a top of range breakout above 18.32 at https://stockconsultant.com/?CORZ
×
×
  • Create New...

Important Information

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