Problems with Plot Statement not working

Questions about MultiCharts and user contributed studies.
MicroTrader
Posts: 18
Joined: 19 Sep 2009
Been thanked: 2 times

Problems with Plot Statement not working

Postby MicroTrader » 11 Jan 2011

I am trying a very simple indicator which does not plot right. It should plot at the average of the bar when the high of the current bar is less than the previous high and the low of the current bar is higher than the previous low. Sometimes it plots completely above or below the bar, even though clicking on the chart and reading the values plotted gives the correct figure and the correct value is displayed on the status line. Ie in summary it is not plotted at the values calculated.

Code: Select all

Condition1 = High < High[1] And Low > Low[1];

Value1 =(H+L)/2;

If condition1 then Plot1(Value1);


I am using 6.01 Beta1 (Build 3081)

I have attached a figure of what is happening
Attachments
Plot Problem.png
Plot Problem.png (69.16 KiB) Viewed 127 times

User avatar
piranhaxp
Posts: 236
Joined: 18 Oct 2005
Has thanked: 4 times
Been thanked: 29 times

Re: Problems with Plot Statement not working

Postby piranhaxp » 11 Jan 2011

MicroTrader,

please go to 'Format Study'. Format your plot as "Point", "Right-Tick" or "Cross". Then jump to 'Properties' and select 'SubChart#1' under "SubChart". Go on and jump to "Scaling" and select 'Same as Instrument'.

May this is the issue.

Don't see any mistakes in your code.

Regards.

Mike

MicroTrader
Posts: 18
Joined: 19 Sep 2009
Been thanked: 2 times

Re: Problems with Plot Statement not working

Postby MicroTrader » 11 Jan 2011

Mike

Yes that was the problem. Many thanks.

This is the first example from the Markplex.com Easy Language Tutorial series. It was a little discouraging for me not getting this first indicator to work!

On to example two now :)

User avatar
piranhaxp
Posts: 236
Joined: 18 Oct 2005
Has thanked: 4 times
Been thanked: 29 times

Re: Problems with Plot Statement not working

Postby piranhaxp » 11 Jan 2011

MicronTrader,

always welcome.

Mike


Return to “MultiCharts”