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

Re: [amibroker] Re: PlotShapes()



PureBytes Links

Trading Reference Links

You will have to look into the future to do that, as follows:
cond= C < Ref(C,1);
PlotShapes( IIf( cond, shapeDigit1, shapeNone ),colorBlue,0,H,24 );
This is because all code is working on the current bar (today) and to plot something on the current bar that is dependent on the NEXT bar (tomorrow) this is considered looking into the future. Just don't use it to trade today :-)

Terry

ami_trader wrote:
terry,
your code place a shape today, I need: If today is true place shape 
yesterday

---
Giuseppe


--- In amibroker@xxxxxxxxxxxxxxx, Terry <MagicTH@xxxx> wrote:
  
Yes, but minor change needed:

cond= C>Ref(C,-1);
PlotShapes( IIf( cond, shapeDigit1, shapeNone ),colorBlue,0,H,24 );


Terry

ami_trader wrote:

    
Is it possible?

cond= C>Ref(C,-1);

PlotShapes( IIf( cond, *plot shapeDigit1 1 bar ago*, shapeNone ), 
colorBlue,0,H,24 );

Thanks

---
Giuseppe






Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

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


Yahoo! Groups Links








 

      





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.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/
 




  


Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

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




Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links