Maybe I can figure out the entry on my own. The entry is a meant to be a stop entry. The range to break out of is set by the open.

The exit....had a bit of time to think about it. Clearly I am not thinking in source code yet. I want to enter one bar, then if the next bar's open is profitable, then exit. So I have tried the condition below, with a delay of one bar using the TradeTime variable and checking for profitability for TradeResult.

if ( TradeTime == 1 && TradeResult > 0 )

The alternative is to compare the priceOpen() < TradePriceOpen.

Does the potential for multiple trades complicate things?

And...yes...oops...1440.

Last edited by DMB; 08/29/13 11:49.