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

Re: [amibroker] Emulate MS SmartChart feature



PureBytes Links

Trading Reference Links

I think the last email sounded confusing.

This is what looks to be happening.

I have code to generate a Buy and then a stop. The stop is either a break of
the entry days  low price or a target figure price equal to 3 times the
entry dya high price.

The program generates a BUY signal correctly.

It then does not have  a sell signal and a long time goes by.

Then, a secind Buy signal occurs but it is not shown on the chart as it
should be ignored until a sell signal occurs. Correct so far.

Program THEN takes the next sell signal FOR the second non triggered Buy
signal.

SO ta this stage its staring to look like the program is not working
correctly.

This is the code after the BUY signal line.

Cond5 = L < ValueWhen(Buy, L);

Cond6 = H > 3 * ValueWhen(Buy, H);

Sell = Cond5 OR Cond6;

SellPrice = C;

Buy = ExRem(Buy, Sell);



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