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

[amibroker] Price Steps



PureBytes Links

Trading Reference Links

Hello,

This sample is for COMMENTARY window only.
and the sample is not any kind of trading system 
- it is there merely to show the differences between global and local variables. 

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "firehorse888uk" <firehorse888uk@xxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Sunday, July 11, 2004 11:55 AM
Subject: [amibroker] Help with really dumb programming example wanted!!!


> Hi,
> 
> I'm trying to follow some examples and I'm getting stuck.
> 
> I've copied and pasted the below example from the manual. I've added
> the buy and sell = false statements.
> 
> When I click Scan, nothing happens. I don't see any output. What am I
> doing wrong. Thanks.
> ----------------------------------
> 
> Buy=False;
> Sell=False;
> 
> VariableA = 5; // implict global variable 
> 
> function Test() 
> { 
>    local VariableA;  // explicit local variable with the same
> identifier as global 
>    global VariableB; // explicit global variable not defined earlier 
>                      // may be used to return more than one value from
> the function 
> 
>    VariableA = 99; 
>    VariableB = 333; 
> } 
> 
> VariableB = 1; // global variable 
> 
> "Before function call"; 
> "VariableA = " + VariableA; 
> "VariableB = " + VariableB; 
> 
> Test(); 
> 
> "After function call"; 
> "VariableA = " + VariableA + " (not affected by function call )"; 
> "VariableB = " + VariableB + " (affected by the function call )";
> 
> 
> 
> 
> 
> Check AmiBroker web page at:
> http://www.amibroker.com/
> 
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> Yahoo! Groups Links
> 
> 
> 
>  
> 
>


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

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

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