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

Code Help!



PureBytes Links

Trading Reference Links

Hi list,

Could anybody help me coding this strategy:

A bar is considered a set-up bar and will be marked with a small purple
square on the chart or identified by the scanner if the following conditions
are met:

Buy conditions:

?Current bar is a new 20 bar low.
?AND the new low is at least 3 bars from the previous 20 bar low.
?AND the close of the new low bar is less than or equal to the previous 20
bar low. The previous bar low is labeled with a ^.


The buy reference is the previous new low.




Sell conditions:

?Current bar is a new 20 bar high.
?AND the new high is at least 3 bars from the previous 20 bar high.
?AND the close of the new high bar is greater than or equal to the previous
20 bar high. The previous bar high is labeled with a up or down ^.

The sell reference is the previous new high.


thanks in advance!