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

[amibroker] Re: How do I reference back to my current trade buy price?



PureBytes Links

Trading Reference Links

The only 100% reliable way is to write custom backtester code and refer to the trades list. Otherwise, you don't even know for sure whether the Buy was filled or rejected.

Mike

--- 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/

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

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