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

[amibroker] Re: How to convert a string to non-string characters?!



PureBytes Links

Trading Reference Links

If it is just plain impossible to convert strings to actual values (other than plain numbers), perhaps my DLL plugin needs to spit work in a different way?

This is the type of thing I am trying to achieve - to cycle through thousands of conditions like:

Condition1    = MA(C, 12) > C5  AND MA(C,20)    < Close;
Condition2    =
EMA(L,4)  > C3  OR  MA(H,7)     > Close;
.
.
.
Condition2555 =
MA(H, 50) < C12 AND  EMA(L, 12) < Close;


Setting the left sides of the above expressions is easy, using dynamic variables.

But my DLL spits out the right sides of the above expressions, but only as strings. So instead of the DLL returning strings, how else could it interface with AmiBroker so that the dynamic assignments above are created in the AFL?




--- In amibroker@xxxxxxxxxxxxxxx, "ozzyapeman" <zoopfree@xxx> wrote:
>
> Or to take a more trivial example, the following prints "3" instead of
> "12":
>
> VarSetText("Condition1", "3 + 4 + 5");
>
> Total = StrToNum (VarGetText("Condition1"));
>
> printf ("Sum %g", Total);
>
> How do I convert the above string so that Total is equal to the
> _expression_ itself, which is equal to 12?
>
>
> --- In amibroker@xxxxxxxxxxxxxxx, "ozzyapeman" zoopfree@ wrote:
> >
> > Yes, tried that. But since the values spit out by the function aren't
> > just pure numbers, it does not seem to work.
> >
>
__._,_.___

**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

*********************
TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
*********************

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html

*********************************




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___