Page 1 of 1

unstack TPO study

Posted: Jan 14 2016
by arnie
I have an unstack TPO study coded by SPMC for the PLE version and I'd like to know if there's anyone here available to code it into the .NET version.

Here's the script:

Code: Select all

// SPMC version
Inputs:
Letters("abcdefghijklmnopqrstuvwxyzabABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"),
LetterSize (10),
LetterColor(white),
LetterFont("Consolas"),
ShowOpen(true),
OpenColor(red);

Variables:
todaySession(0),
Counter(0),
LetterCounter(0),
TPOLetter(""),
MinM(1 POINT*MinMove);

Array:
PriceArray[1,100000](0),
TextArray[1,100000](0);

todaySession = CurrentSession(0);

if todaySession <> todaySession[1] then
LetterCounter = 0;

LetterCounter = LetterCounter + 1;
TPOLetter = midstr(Letters, LetterCounter, 1);

FOR Counter = Low/MinM to High/MinM begin
PriceArray[1, Counter] = Counter*MinM;
TextArray[1, Counter] = Text_New_dt (Datetime, PriceArray[1, Counter], TPOLetter);
If LetterCounter = 1 and Counter * MinM = Open and ShowOpen = true then
Text_SetColor(TextArray[1, Counter], Red)
else
Text_SetColor(TextArray[1, Counter], LetterColor) ;
text_setsize(TextArray[1, Counter], LetterSize ) ;
text_setfontname(TextArray[1, Counter], "LetterFont");
end ;
Here's the snapshot. The chart bars was set to invisible so only the letter gets shown.

Image

Re: unstack TPO study

Posted: Jan 27 2016
by Henry MultiŠ”harts
Hello arnie,

Please contact us directly if you are interested in the custom programming services.