Code: Select all
pmm_set_my_named_num( "BuySignal", rsivalue ) ;
Code: Select all
Buy next bar open ;
- How does the variable know which stock is in question. My strategy might produce several entry signals from several different stocks.
In my "money management signal" code I have this:
Code: Select all
for idx = 0 to portfolioStrategies - 1
begin
//increment the counter when a signal wants to enter
if pmms_get_strategy_named_num( idx, "BuySignal" ) > -1 then
buy_signals += 1 ;
Value_Idx[1, idx + 1] = pmms_get_strategy_named_num( idx, "BuySignal" ) ;
Value_Idx[2, idx + 1] = idx ;
end ;
- What does the += symbol do? What does a -= symbol do?
- How does the entry signal code tell the money management system code which specific stock we are talking about it. It seems that idx is some sort of identifier for each stock but idx variables only turn up in the "money management signals".
It's all kind of confusing from a beginners perspective.