Need Help..

#1
Dear All,

I am trying to create AFL in Below Conditin .

1) First should Find Today's OPEN Price.
2) Check the OPEN Price Between two Values .
3) If OPEN Price betwen these two values then Draw a Line in first value.


Example :-
=========
Assume Open Price = 5735.
After that we should check the OPEN PRICE > 5700 AND < 5750. If this condition is true then Draw a line @ 5700 Value.


==========================================================
TO = TimeFrameGetPrice("O", inDaily); // This for find the Today's OPEN Value.

If TO > 5700 AND < 5750 then Draw a Line @ 5700 // I WANT TO CORRECT IF CONDITION STATEMENT HERE //
{
Trend = 5700;
}

Plot(Trend,"",colorGreen, styleDots);
==========================================================

Can any one help this ?
 

KelvinHand

Well-Known Member
#3
Dear All,

I am trying to create AFL in Below Conditin .

1) First should Find Today's OPEN Price.
2) Check the OPEN Price Between two Values .
3) If OPEN Price betwen these two values then Draw a Line in first value.


Example :-
=========
Assume Open Price = 5735.
After that we should check the OPEN PRICE > 5700 AND < 5750. If this condition is true then Draw a line @ 5700 Value.


==========================================================
TO = TimeFrameGetPrice("O", inDaily); // This for find the Today's OPEN Value.

If TO > 5700 AND < 5750 then Draw a Line @ 5700 // I WANT TO CORRECT IF CONDITION STATEMENT HERE //
{
Trend = 5700;
}

Plot(Trend,"",colorGreen, styleDots);
==========================================================

Can any one help this ?
Try this:
Trend = ValueWhen(TO>5700 AND TO<5750, 5700);
Plot(Trend,"",colorGreen, styleDots);
 
#4
Try this:
Trend = ValueWhen(TO>5700 AND TO<5750, 5700);
Plot(Trend,"",colorGreen, styleDots);
Dear KelvinHand,

Thanks for your reply. I like to create AFL for below condition.

Levels :-
========
5508 5605
5638 5735
5768 5865

If Nifty Spot cross above 5638 then target 5735 SL 5605.
If Nifty Spot break below 5605 then target 5508 SL 5638.

If Nifty Spot cross above 5768 then target 5865 SL 5735
If Nifty Spot break below 5735 then target 5638 SL 5768 .

Bought or Sold , SL = 33 Points , TAR = 97 Points.

we should check nifty spot open is > 5638 and <5735 then Draw a Line at 5638 . (Buy Above this Line (5638) ) .

nifty spot open is > 5768 and <5865 then Draw a Line 5768

================================================== ========

TO = TimeFrameGetPrice("O", inDaily); // This for find the Today's OPEN Value.

If TO > 5638 AND < 5735 then Draw a Line @ 5638 // I WANT TO CORRECT IF CONDITION STATEMENT HERE //
{
BuyTrend = 5638; // Above this level we should buy here .
SellTrend = BuyTrend - 33; // Break Below this Level we should sell here .
BuyTar = BuyTrend + 97;
SellTar = SellTrend - 97;
BuySL = BuyTrend - 33;
SellSL = SellTrend + 33;
}
Plot(BuyTrend,"",colorGreen, styleDots);
Plot(SellTrend,"",colorRed, styleDots);

================================================== ========

Can you Help this?
 

KelvinHand

Well-Known Member
#5
Dear KelvinHand,

Thanks for your reply. I like to create AFL for below condition.

Levels :-
========
5508 5605
5638 5735
5768 5865

If Nifty Spot cross above 5638 then target 5735 SL 5605.
If Nifty Spot break below 5605 then target 5508 SL 5638.

If Nifty Spot cross above 5768 then target 5865 SL 5735
If Nifty Spot break below 5735 then target 5638 SL 5768 .

Bought or Sold , SL = 33 Points , TAR = 97 Points.

we should check nifty spot open is > 5638 and <5735 then Draw a Line at 5638 . (Buy Above this Line (5638) ) .

nifty spot open is > 5768 and <5865 then Draw a Line 5768

================================================== ========

TO = TimeFrameGetPrice("O", inDaily); // This for find the Today's OPEN Value.

If TO > 5638 AND < 5735 then Draw a Line @ 5638 // I WANT TO CORRECT IF CONDITION STATEMENT HERE //
{
BuyTrend = 5638; // Above this level we should buy here .
SellTrend = BuyTrend - 33; // Break Below this Level we should sell here .
BuyTar = BuyTrend + 97;
SellTar = SellTrend - 97;
BuySL = BuyTrend - 33;
SellSL = SellTrend + 33;
}
Plot(BuyTrend,"",colorGreen, styleDots);
Plot(SellTrend,"",colorRed, styleDots);

================================================== ========

Can you Help this?
No. I already give you the start guide You help yourself.
I m not in india market.

TO_Min = Param("TO Min", 5638, 1 10000);
TO_Max = Param("TO Max", 5735, 1 10000);

BuyTrend = ValueWhen(TO>TO_Min AND TO<TO_Max, TO_Min);
SellTrend = BuyTrend - 33; // Break Below this Level we should sell here .
BuyTar = BuyTrend + 97;
SellTar = SellTrend - 97;
BuySL = BuyTrend - 33;
SellSL = SellTrend + 33;
Plot(BuyTrend,"",colorGreen, styleDots);
Plot(SellTrend,"",colorRed, styleDots);
 
#6
HI,

any one tell me can i add sound alert in amibroker when my price reach to our target price.

For eg. I purchase Bank nifty @ 11500 and my target is 11550 and stoploss is 11475.

I want set sound alert if price reach to 11550 and secound sound alert if price reach to my stop loss price 11475.

I not use any indicator for decided price target or stop loss its simple use price chart only and 50 points target and 25 poits stop loss for every

call.

if any one know about these pls tell me.

Thanks
Kishor.