PureBytes Links
Trading Reference Links
|
I guess you need to eliminate excessive signals,
Sell = ExRem(Sell,Buy);
Buy = ExRem(Buy,Sell);
Then
LastBuyPrice = ValueWhen (Buy,BuyPrice);
Regards
--- In amibroker@xxxxxxxxxxxxxxx, "Rob Boyd" <cadcore@xxx> wrote: > > I have tried using BarsSince (Buy) but if a second buy signal is encountered, it counts from the new signal. To overcome this I have tried setting a variable which tells me I am currently in a trade but the variable first needs to be initialized. I have tried > InTrade = IIf (IsNull (InTrade),0, InTrade); > // if null then set to zero otherwise keep current value. > But this does not work. > Many thanks > Rob >
__._,_.___
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
__,_._,___
|