unstack TPO study

Questions about MultiCharts .NET and user contributed studies.
User avatar
arnie
Posts: 1594
Joined: 11 Feb 2009
Location: Portugal
Has thanked: 481 times
Been thanked: 514 times

unstack TPO study

Postby arnie » 14 Jan 2016

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
Attachments
tpo.png
(39.84 KiB) Downloaded 709 times

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: unstack TPO study

Postby Henry MultiСharts » 27 Jan 2016

Hello arnie,

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


Return to “MultiCharts .NET”