PureBytes Links
Trading Reference Links
|
To displace your Plot1 back one bar change Plot1(Low[1],"LoPt"); to
Plot1[1](Low[1],"LoPt");
I personally don't like displacing indicators as it can give a false
impression,
ie. picking tops and bottoms in hindsight.
I feel it is best to plot the buy price, as this gives a better picture of
where you would be able to enter the market.
When a condition is true instead of buying the close, to allow a little time
for the order to be filled, I usually test with Buy next bar at Market.
Coded this way shifts the showme to the open of the next bar.
IF Mode[1] = 1 and Low[1] >= Low[2] + Factor then begin
Plot1(Open,"LoOpen");
Neville
-----Original Message-----
From: H Travis Putney <tputney@xxxxxxxxxxxxx>
To: Omega List <omega-list@xxxxxxxxxx>
Date: Monday, February 19, 2001 7:54 PM
Subject: ELA Show-Me
>I thought I could write a simple showme, but TS4 keep plotting Plot1 on the
>bar one bar past the low point bar I am trying to plot. Can someone please
>help me correct my error in the code?
>
>Thanks in advance for your help.
>
>HTP
>
>
>
>Inputs: Factor(0.1250);
>
> IF Low[1] <= Low[2] - Factor then begin
> Mode = 1;
> End;
>
> IF Mode = 1 and Low >= Low[1] + Factor then begin
> Plot1(Low[1],"LoPt");
> IF CheckAlert Then Alert = TRUE;
> End;
>
>
>
>
|