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

    • re TikTok Recently metafakebook made what was apparently a move to stay aligned with ‘culture’ - no more fact ‘checking’, no more censorhip... basically ‘Zucker’ was shown that his mission was failing because they were only building profiles on ‘useful idiots’ instead of those who oppose the great centralization  (... just like long ago he only saw campus potential and had to be shown the promise and rewarded for fronting the great spyware and social engineering project called Fakebook)... ie they could have replaced him long ago In the same vein, who holds ‘title’ to tiktok doesn’t matter either... it will remain a spyware project regardless of who ‘buys’ it... and the data will forever be available to the CCP Just sayin’
    • Omobola,  As an engineer surely you have money to buy a ticket to Monterey, Mexico... just a hop and a jump from there to Texas...  hth zdo 
    • Date: 20th January 2025.   The NASDAQ Rises As Trump Inauguration Edges Closer!   US indices increased in value for the first time after struggling for 5 consecutive weeks. Of the main US indices the NASDAQ witnessed the strongest gains (4.12%). Risk indicators point to a higher risk appetite under the new US President, Donald Trump. President Trump's inauguration will take place this afternoon and has promised to sign over 100 consecutive orders within his first week. NASDAQ - Higher Investor Confidence! NASDAQ traders begin to stomach less frequent interest rate adjustments, the market turns its attention to earnings and Trump’s presidency. Investors are becoming more bullish under expectations that Trump will apply policies to support the US economy and entice further investment into the US stock market. A "risk-on" sentiment is evident in today's sessions, reflected in risk indicators like the VIX, High-Low Index, and Bond yields.     Investors this week will concentrate on two factors. The first factor is Trump’s consecutive orders which he has advised will be signed within his first week. Investors will closely monitor how and if these policies influence the US economy and stocks. The second factor is earnings season, which will start to gain momentum this week. Tomorrow, Netflix will release its quarterly earnings report after the market closes. Netflix is the NASDAQ’s 10th most influential company and 11th most impactful stock. Analysts expect the company’s earnings per share to drop from $5.40 to $4.21, but for Revenue to rise to $10.11 Billion. If Netflix is able to beat the earnings per share and revenue expectations, fundamental elections would indicate a rise in the price. Over the past 12 months the price has risen 76%. A further increase would further support the NASDAQ. Thereafter, investors will turn their attention to Intuitive Surgical’s earnings report. Currently, investors believe the company’s earnings per share and revenue will rise compared to the previous quarter. Intuitive’s stock has risen by more than 9% in the past week alone indicating that investors believe the company will continue to beat earnings expectations. The company has beat expectations over the past 12-months. How are Markets Reacting to Trump's inauguration? Trump pledged to issue executive orders aimed at advancing artificial intelligence programs and establishing the Department of Government Efficiency (Doge). Analysts expect these two alone to support US stocks. However, investors are not yet certain to what extent upcoming tariffs will pressure the NASDAQ and stocks. During the previous trade wars, the NASDAQ fell by 25% over a period of 4-months. Traders also should note that the NASDAQ rose in the 6-weeks after Trump won the elections. Over the past week, the VIX index fell by more than 12% indicating that the market believes US stocks will perform well under a Trump presidency. Simultaneously, US Bond yields have fallen from 4.80% to 4.58% which is known to positively influence the US stock market. Both the VIX and lower bond yields indicate higher investor confidence as Trump advises that policies will prompt more employment, US made products and more pro-US policies. NASDAQ - Technical Analysis The price of the NASDAQ trades above the 200-bar Moving Average on a 5-minute Chart indicating bullish price movement. Moving Averages have also crossed over upwards and the price trades above the VWAP indicating that the asset is maintaining its bullish momentum. Price action is also forming clear higher highs and higher lows, but investors will be cautious if the price does not find resistance at the $21,637 resistance level. In order to break above this level, investors will be hoping for positive earnings data from Netflix and Intuitive.     Key Takeaways: President Trump's inauguration will take place this afternoon with promise to sign over 100 consecutive orders within his first week. US indices rise after 5 weeks of declines, with the NASDAQ leading at 4.12%. Trump pledged to issue executive orders aimed at advancing artificial intelligence programs and establishing the Department of Government Efficiency. Analysts expect Netflix earnings per share to drop from $5.40 to $4.21, but for Revenue to rise to $10.11 Billion. Investors are becoming more bullish under expectations that President Trump will apply policies to support the US economy and entice further investment into the US stock market. 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. Michalis Efthymiou 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 Leveraged 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.
    • Consider: some 80% of small to medium-sized businesses around the world don’t have a website.   Many businesses in emerging economies rely on social media platforms (e.g., WhatsApp, Facebook) as their primary digital presence instead of formal websites.   But even in more digitally advanced economies, the number can hover around half.   Why? Simple answer: although we’ve made it easier to make a website, it’s still not easy enough.   Let’s say a yoga instructor wants to offer online classes but lacks tech skills or a budget.   Instead of struggling with confusing platforms, she tells her AI agent, “Set up a website for me to host yoga classes.”   The AI handles everything.   It integrates Stripe for payments, Zoom for live classes, scheduling services for in-person classes, and a chat module for inquiries.   It even suggests templates.   When the instructor picks one and asks for a purple and white color scheme, the AI updates it instantly.   No coding. No frustration. Just results.   And the best part? She didn’t have to touch a single screen or key.   This is the future Wilson describes in Age of Invisible Machines.   And, as mentioned, it’s powered by three core technologies:   Conversational User Interfaces (CUIs): Say what you need; the system handles it. From building websites to booking flights, it’s fast and human-like.   Composable Architecture: Traditional business solutions become “modules”. Like LEGO bricks, modular tools—payments, chats, scheduling—snap together to create custom solutions without starting from scratch.   No-Code Programming: AI agents code for you, empowering anyone to create without needing a developer. It’s not just a better way to interact with technology…   It’s a complete reimagining of how industries operate.   As Harvard Business School’s Marco Iansiti says, “This isn’t disruption—it’s a fundamental shift in production and interaction.”   And, the thing is…   It’s not just possible. It’s already happening.   Early examples are already here. – Chris Campbell, AltucherConfidential Profits from free accurate cryptos signals: https://www.predictmag.com/ 
    • Question: My name is Omobola Sikiru from Lagos, Nigeria. I am mechanical engineering. Where can I find someone that can be my helper to relocate me to the USA?   Answer: According to your own profile, you are trying to enter other countries through deception and immigration fraud.   You are an engineer in Nigeria, but you are not licensed as an engineer in any other country.   There are no helpers, no sponsors, and nobody is going to give you money, get you an engineering job, or get you a visa.   You must qualify to immigrate. Nobody can help you with that.   Either you qualify and have settling in money, or you don’t.   You need to improve your English before trying to get a job in a Western, English speaking country. Engineers write reports. You wrote, ‘I am mechanical engineering’. Nobody will hire you if you write like this. Rathkeale Source: https://www.quora.com/My-name-is-Omobola-Sikiru-from-Lagos-Nigeria-I-am-mechanical-engineering-Where-can-I-find-someone-that-can-be-my-helper-to-relocate-me-to-the-USA   Profits from free accurate cryptos signals: https://www.predictmag.com/  
×
×
  • Create New...

Important Information

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