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

[amibroker] Re: how many bars since a lower value than today?



PureBytes Links

Trading Reference Links

Don, I just ran the scan on a few stocks and it worked ok for me, showing
sell at the breaks.
Try adding the plotshape to your chart and see if it being recognised as a
sell. Not sure what stock you have shown.

Plot(C,"C",colorBlack,styleCandle);
Plot(EMA(L, test),"ema",colorBlack,styleLine);
PlotShapes(shapeStar*Sell,colorGreen,0,L,-10);


Cheers,
Graham
http://e-wire.net.au/~eb_kavan/ 
-----Original Message-----
From: Collectable Images [mailto:telecard@xxxxxxxxxxxxxx] 
Sent: Saturday, July 03, 2004 5:10 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] Bugs?

When I move the chart it shwos teh values of the MA and the chart price and
it clearly shows they are broken.
 
Don
-----Original Message-----
From: Graham [mailto:gkavanagh@xxxxxxxxxxxxx]
Sent: Saturday, 3 July 2004 6:55 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] Bugs?
Its always a good idea to check values in an exploration, sometimes the
screen shot can be deceiving
 
Cheers,
Graham
http://e-wire.net.au/~eb_kavan/ 
-----Original Message-----
From: Collectable Images [mailto:telecard@xxxxxxxxxxxxxx] 
Sent: Saturday, July 03, 2004 4:33 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] Bugs?
 
Graham,
 
sorry i sent the wrong number in teh email.
 
I did test it on 35 and it is as i said, The chart shows the ema (35)
crossing the close and no exit signal.
 
 
-----Original Message-----
From: Graham [mailto:gkavanagh@xxxxxxxxxxxxx]
Sent: Saturday, 3 July 2004 6:14 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] Bugs?
Test it without the optimize statement, that shows the default test at 35
 
Cheers,
Graham
http://e-wire.net.au/~eb_kavan/ 
-----Original Message-----
From: Collectable Images [mailto:telecard@xxxxxxxxxxxxxx] 
Sent: Saturday, July 03, 2004 3:07 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Bugs?
 
Hello,

I am a newbie to this program so appreicate any help to understand what is
going on with the program.

I havean issue that I can not understand.

1) A chart shown below has the 37 day EMA (blue line) and the code in
amibroker should exit at break of this line with the close. Why did it not
stop out??
Here is the code.
PosQty = 15; //posqty = Optimize("PosQty", 15, 1, 25, 1 );
SetOption("MaxOpenPositions", posqty);
PositionSize = -100/posqty; 
Average_Price = Ref(MA(C, 14), -1);
Average_volume = Ref(MA(V, 14), -1);
Liquidity = Average_Price * Average_volume;
test = Optimize("test", 35, 1, 50, 1); 
 
Buy = Cross(H, Ref(HHV (H, 10), -1)) AND H > EMA(C, 40) AND HHVBars(H,
70)==0 AND Liquidity > 500000 AND C < 10 AND C > O; //Entry Conditions
Sell = Cross(EMA(L, test), C); //exit rules
SetTradeDelays(0, 0, 0, 0);


 
 


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

Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html 



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

Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html 


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

Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html 




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

Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html 



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

Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html 



Yahoo! Groups Sponsor
ADVERTISEMENT





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 the Yahoo! Terms of Service. 



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