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

[amibroker] Can anyone help



PureBytes Links

Trading Reference Links

Hi,

I just started using AmiBroker having ditched Metastock and am 
getting to grips with it.

I want to set a state flag: State = 1 if I am long or -1 if I am 
short.  I generate momentary signals to go long and the same for 
short.  They persist only for the trigger bar.

So I want to do 

State = IIf(Sellsignal==1, -1, State);
State = IIf(BuySignal==1, 1, State);

But it seems I can't set state = state.

Any ideas how I can do this?

Thanks




John Rowlinson


Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/