PureBytes Links
Trading Reference Links
|
You can call object methods anytime you have a valid object. The question is, where did the trade object come from?
It is perfectly valid, for example, to do something like:
trade = bo.GetFistTrade();
for (sig = bo.GetFirstSignal(i);sig; sig = GetNextSignal(i)) {
...
if (trade.GetPositionvalue() >= 50000)
sig.PosSize=0;
...
}
--- In amibroker@xxxxxxxxxxxxxxx, "Markus Witzler" <funnybiz@xxx> wrote:
>
> Hello again,
>
> I have always been under the impression that trade properties/methods can only be called within a trade loop and signal properties/methods can only be called in a signal loop.
>
> But in the documentation in the "users knowledge base", I found this:
>
> for (sig = bo.GetFirstSignal(i);sig; sig = GetNextSignal(i))
> ...
> if (trade.GetPositionvalue() >= 50000)
> sig.PosSize=0;
> ...
>
> Wouldn´t one need a trade loop to be able to call GetPosiotionValue which is a trade method, or can methods/properties be called from any kind of loop (trade or signal)?
>
> Thanks
>
> Markus
>
>
>
> __________ Information from ESET Smart Security, version of virus signature database 4581 (20091107) __________
>
> The message was checked by ESET Smart Security.
>
> http://www.eset.com
>
------------------------------------
**** 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:
amibroker-digest@xxxxxxxxxxxxxxx
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/
|