Multichart and Breakout lines

Questions about MultiCharts and user contributed studies.
EasyHelp

Multichart and Breakout lines

Postby EasyHelp » 05 Feb 2007

I am a bit confused trying to program something that will display 2 lines on the top and low of the range I specify so that it does the work automatically every day.

I started like this but I think this is not the way to go so I ask for advice :
(I want to keep the lines displayed even after Ti2 up to the end of the day)

inputs:
Ti1( 0830 ),
Ti2( 0833 ),

variables:
H1 (1),
L1 (100000);

If Time next bar >= Ti1 and Time next bar <= Ti2 Then Begin
If high>H1 then H1=RangeHi;
If low<L1 then L1=low;
End;

Plot1(H1,"High");
Plot2(L1,"Low");

Please help

µEngine

Postby µEngine » 06 Feb 2007

I am interested too. There is no breakout examples provided with Multicharts

User avatar
Stanley Miller
Posts: 556
Joined: 26 Jul 2005
Has thanked: 3 times

Postby Stanley Miller » 06 Feb 2007

You are doing almost the same highest(high,length) lowest(low,length) fuctions do. Try to use them.

EasyHelp

Thank you

Postby EasyHelp » 08 Feb 2007

Thank you Stanley for your help !

Is there a function in Multicharts I can use so that I go directly to the bar with parameter (time, date) so that I can ask the high and then the low of this specific bar ?

User avatar
Stanley Miller
Posts: 556
Joined: 26 Jul 2005
Has thanked: 3 times

Postby Stanley Miller » 12 Feb 2007

By default the only way to obtain price information is to request bars by their numbers. E.g. high[5] will return the High value which was 5 bars back from the current bar. Apparently EL Collection has some functions allowing to request prices by time but I'm not 100% sure.

momentum
Posts: 318
Joined: 23 Nov 2005
Has thanked: 8 times
Been thanked: 14 times

Postby momentum » 12 Feb 2007

Have a look at the file I posted here:

http://forum.tssupport.com/viewtopic.php?t=3066

It may do the trick with some changes.


Return to “MultiCharts”