I have looked at the forums and docs but am still struggling to get this to work.
A simple example of the strategy code is below. Does anyone have the code to use in the Money Management signal for portfolio Trader to limit the system to x number of open positions? Do I need to add anything to the strategy code below or just the portfolio money management signal?
---------------------------------------------------------------
Code: Select all
inputs: Price( Close ), Length( 14 ), OverSold( 30 ) ;
variables: var0( 0 ) ;
var0 = RSI( Price, Length ) ;
condition1 = Currentbar > 1 and var0 crosses over OverSold ;
if condition1 then
Buy ( "RsiLE" ) next bar at market ;
if barssinceentry>10 then sell next bar market;