| SetMarginAccount(Amount) |
This procedure has one parameter:
| Amount | The size of your margin account for a stock. |
Example:
|
' This is a system. Sub Main() SetMarginAccount(50000) SetTradingAccount(50000) For CurrentBar = BeginBar to EndBar I = GetValue("RSI", CurrentBar) I1 = GetValue("RSI", CurrentBar - 1) If (I < 15) and (I <> 0) and (I1 >= 15) then Buy(CurrentBar) Cover(CurrentBar + 1) End If If (I > 75) and (I1 <= 75) then Sell(CurrentBar) Short(CurrentBar + 1) End If Next End Sub |