[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: simple easy language question



PureBytes Links

Trading Reference Links

First, delete the strategy from your charts.


Then open the PowerEditor and modify your signal as follows:

If condition1 and condition2 and MarketPosition < 1 then buy at market;


And this:

If condition3 and condition4 and MarketPosition > -1 then sell at market;


Also, open the StrategyBuilder and delete the signal from the strategy then 
re-add it again.  Ensure that both "Maximum open entries per position" and 
"Maximum contracts/shares per position" are set to 1 and that pyramiding 
is unchecked.  

Then exit the StrategyBuilder and re-add the strategy to your charts.




At Fri, 22 Sep 2000 01:54:49 -0400, "SenFL" <SenFL@xxxxxxxxxxxxxxx> wrote:

>
>Hi,
>
>I haven't had this problem before in 2000i.
>
>I have a reversing system that is always in the market.
>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>condition1= ......;
>condition2= ......;
>
>If condition1 and condition2 then buy at market;
>
>condition3= .....;
>condition4= .....;
>
>If condition3 and condition4 then sell at market;
>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>I have pyramiding set to off and number of contracts max is one.  The 
>system
>is reversing fine but keeps buying or selling when it sees more instances 
>of
>the conditions being met before  it sees the conditions met to trade 
>in the
>opposite direction.  I only want one trade in the same direction.
>
>I have tried adding "if marketposition(0)=1 and if currentbar>1 then 
>begin
>statements" but it doesn't help.  Testing is at tick level.
>
>Thanks for any pointers
>