indiTraders - Forum for the Active Indian Trader  

Go Back   indiTraders - Forum for the Active Indian Trader > Tools > Software > Amibroker

Reply
 
Bookmark and Share LinkBack Thread Tools Display Modes
  #1741 (permalink)  
Old 22-08-2016, 02:40 PM
sherbaaz's Avatar
sherbaaz sherbaaz is offline
indiTraders VIP
 
Join Date: May 2010
Posts: 383
Thanks: 182
Thanked 986 Times in 343 Posts
sherbaaz is a glorious beacon of lightsherbaaz is a glorious beacon of lightsherbaaz is a glorious beacon of lightsherbaaz is a glorious beacon of lightsherbaaz is a glorious beacon of lightsherbaaz is a glorious beacon of lightsherbaaz is a glorious beacon of lightsherbaaz is a glorious beacon of lightsherbaaz is a glorious beacon of light
Default

thanks all for the help. a bit more help is needed. when i am plotting the hourly pivots vertical lines are also coming as the day progress i want to remove them and keep only the pivot lines for each hour (past hours pivots also).

kindly help


regds,s
__________________
"It is vain to do with more what can be done with less"
"It is easy to do, and it is easy not to do"
"Momentum precedes price"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to sherbaaz For This Useful Post:
  #1742 (permalink)  
Old 22-08-2016, 03:38 PM
no1lives4ever no1lives4ever is offline
Newbie
 
Join Date: Jul 2009
Posts: 3,334
Thanks: 19,393
Thanked 5,621 Times in 2,391 Posts
no1lives4ever has a reputation beyond repute
no1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond repute
Default

Originally Posted by sherbaaz View Post
thanks all for the help. a bit more help is needed. when i am plotting the hourly pivots vertical lines are also coming as the day progress i want to remove them and keep only the pivot lines for each hour (past hours pivots also).

kindly help


regds,s

The problem is simple. Bars are aligned as per market open in your amibroker setting, while the afl is breaking along bars that are aligned by the hour.

The solution for this would be a bit tricky. Let me give it some thought and then see.

-- no1lives4ever
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to no1lives4ever For This Useful Post:
  #1743 (permalink)  
Old 22-08-2016, 03:55 PM
no1lives4ever no1lives4ever is offline
Newbie
 
Join Date: Jul 2009
Posts: 3,334
Thanks: 19,393
Thanked 5,621 Times in 2,391 Posts
no1lives4ever has a reputation beyond repute
no1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond repute
Default

Originally Posted by sherbaaz View Post
thanks all for the help. a bit more help is needed. when i am plotting the hourly pivots vertical lines are also coming as the day progress i want to remove them and keep only the pivot lines for each hour (past hours pivots also).

kindly help


regds,s

change the following lines in the code:
Code:
PP =IIf(dwm, Null, PP);
R1= IIf(dwm, Null, R1);
R2= IIf(dwm, Null, R2);
S1= IIf(dwm, Null, S1);
S2= IIf(dwm, Null, S2);
Change to:

Code:
PP =IIf(PP != Ref(PP,-1), Null, PP);
R1= IIf(R1 != Ref(R1,-1), Null, R1);
R2= IIf(R2 != Ref(R2,-1), Null, R2);
S1= IIf(S1 != Ref(S1,-1), Null, S1);
S2= IIf(S2 != Ref(S2,-1), Null, S2);
-- no1lives4ever
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 3 Users Say Thank You to no1lives4ever For This Useful Post:
  #1744 (permalink)  
Old 22-08-2016, 05:40 PM
sherbaaz's Avatar
sherbaaz sherbaaz is offline
indiTraders VIP
 
Join Date: May 2010
Posts: 383
Thanks: 182
Thanked 986 Times in 343 Posts
sherbaaz is a glorious beacon of lightsherbaaz is a glorious beacon of lightsherbaaz is a glorious beacon of lightsherbaaz is a glorious beacon of lightsherbaaz is a glorious beacon of lightsherbaaz is a glorious beacon of lightsherbaaz is a glorious beacon of lightsherbaaz is a glorious beacon of lightsherbaaz is a glorious beacon of light
Default

Originally Posted by no1lives4ever View Post
change the following lines in the code:
Code:
PP =IIf(dwm, Null, PP);
R1= IIf(dwm, Null, R1);
R2= IIf(dwm, Null, R2);
S1= IIf(dwm, Null, S1);
S2= IIf(dwm, Null, S2);
Change to:

Code:
PP =IIf(PP != Ref(PP,-1), Null, PP);
R1= IIf(R1 != Ref(R1,-1), Null, R1);
R2= IIf(R2 != Ref(R2,-1), Null, R2);
S1= IIf(S1 != Ref(S1,-1), Null, S1);
S2= IIf(S2 != Ref(S2,-1), Null, S2);
-- no1lives4ever

thanks a ton! it worked very well.

regds,s
__________________
"It is vain to do with more what can be done with less"
"It is easy to do, and it is easy not to do"
"Momentum precedes price"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 2 Users Say Thank You to sherbaaz For This Useful Post:
  #1745 (permalink)  
Old 24-01-2017, 04:31 AM
NIFTY46 NIFTY46 is offline
Regular
 
Join Date: Mar 2009
Posts: 45
Thanks: 405
Thanked 79 Times in 29 Posts
NIFTY46 will become famous soon enoughNIFTY46 will become famous soon enough
Default modification

Respected Members, please guide me that can we find a specific range bound candle in simple AFL style , I need high, low and wants a name of that candle. in c++ we can find easily but i need without c++, please help c++ example is :-
RANGE= REF(H-L ,-1) < REF(H-L,-2);
H1=0;
L1=0;
H1bar=0;
for( i = BarCount-2; i <= BarCount-1; i++ )
{
if(RANGE[i])
{
H1=H[i]; // HIGH of that candle// i wants high of that
L1=L[i] ; // I need LOW of that candle
HLbar=i; // name of that candle
}}
Please guide me, i need just hint,
Regards
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 3 Users Say Thank You to NIFTY46 For This Useful Post:
  #1746 (permalink)  
Old 24-01-2017, 10:16 AM
no1lives4ever no1lives4ever is offline
Newbie
 
Join Date: Jul 2009
Posts: 3,334
Thanks: 19,393
Thanked 5,621 Times in 2,391 Posts
no1lives4ever has a reputation beyond repute
no1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond repute
Default

What do you mean by name of the candle?

What do you want to do exactly? Please describe in plain english how you want to use this in a chart. What you have posted here does not make sense.

-- no1lives4ever
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 3 Users Say Thank You to no1lives4ever For This Useful Post:
  #1747 (permalink)  
Old 24-01-2017, 11:04 AM
NIFTY46 NIFTY46 is offline
Regular
 
Join Date: Mar 2009
Posts: 45
Thanks: 405
Thanked 79 Times in 29 Posts
NIFTY46 will become famous soon enoughNIFTY46 will become famous soon enough
Default

Respected sir, i need your help, without c++ how can we find a specific range bound candle's high, low and name of that candle, example:-

DIF=H-L;
DIF1=Ref(DIF,-1);
DIF2=Ref(DIF,-2);
DIF3=Ref(DIF,-3);
DIF4=Ref(DIF,-4);
DIF5=Ref(DIF,-5);
DIF6=Ref(DIF,-6);
DIF7=Ref(DIF,-7);
RANGE = DIF < DIF1 AND DIF < DIF2 AND DIF < DIF3 AND DIF < DIF4 AND DIF < DIF5 AND DIF < DIF6 AND DIF < DIF7;
H1=0;
L1=0;
H1bar=0;
for( i = BarCount-2; i <= BarCount-1; i++ )
{
if(RANGE[i])
{
H1=H[i];// HIGH of that candle
L1=L[i] ;//LOW of that candle
H1bar=i;// name of that candle
}}

///////////////////////////////////////////////////////

BUT I WANTS THIS IN SIMPLE LANGUAGE.WITHOUT USING (for),(i),(BARCOUNT),I mean without loop Example :-
//////////////////////////////////////////////////////

_SECTION_BEGIN("SIMPLE RANGE");
DIF=H-L;
DIF1=Ref(DIF,-1);
DIF2=Ref(DIF,-2);
DIF3=Ref(DIF,-3);
DIF4=Ref(DIF,-4);
DIF5=Ref(DIF,-5);
DIF6=Ref(DIF,-6);
DIF7=Ref(DIF,-7);
RANGE = DIF < DIF1 AND DIF < DIF2 AND DIF < DIF3 AND DIF < DIF4 AND DIF < DIF5 AND DIF < DIF6 AND DIF < DIF7;
MASK= ParamStyle("MASK",styleBar| styleThick , maskAll);
BARCOLOR = IIf(RANGE,colorTurquoise,colorGrey50);
Plot( C, "Close", BARCOLOR,MASK);
_SECTION_END();

please plot this in your system and guide me and help me to find name, high, low of Turquoise colour (LATEST -1) candle in simple afl language
regards
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1748 (permalink)  
Old 24-01-2017, 11:51 AM
NIFTY46 NIFTY46 is offline
Regular
 
Join Date: Mar 2009
Posts: 45
Thanks: 405
Thanked 79 Times in 29 Posts
NIFTY46 will become famous soon enoughNIFTY46 will become famous soon enough
Default

Originally Posted by no1lives4ever View Post
What do you mean by name of the candle?

What do you want to do exactly? Please describe in plain english how you want to use this in a chart. What you have posted here does not make sense.

-- no1lives4ever

Sir thanks for quick reply. on amibroker
1) i wants to plot range bound candles,
2) the range candle must be small from seven days,
3) high low of plotted range bound candle must be small from last seven days daily high low,
4) plot two horizontal lines one from high and one from low
5)example png image link ;-
6)example :-buy if cross(c,ref(range, H)); AND SELL If cross(range,L,close);
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1749 (permalink)  
Old 25-01-2017, 05:59 AM
colion colion is offline
Regular
 
Join Date: Oct 2009
Posts: 31
Thanks: 2
Thanked 48 Times in 22 Posts
colion is on a distinguished road
Default

Originally Posted by NIFTY46 View Post
Respected Members, please guide me that can we find a specific range bound candle in simple AFL style , I need high, low and wants a name of that candle. in c++ we can find easily but i need without c++, please help c++ example is :-
RANGE= REF(H-L ,-1) < REF(H-L,-2);
H1=0;
L1=0;
H1bar=0;
for( i = BarCount-2; i <= BarCount-1; i++ )
{
if(RANGE[i])
{
H1=H[i]; // HIGH of that candle// i wants high of that
L1=L[i] ; // I need LOW of that candle
HLbar=i; // name of that candle
}}
Please guide me, i need just hint,
Regards

There are many AmiBroker codes for candlesticks and a good place to start is the AmiBroker library.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 2 Users Say Thank You to colion For This Useful Post:
  #1750 (permalink)  
Old 29-01-2017, 08:42 PM
no1lives4ever no1lives4ever is offline
Newbie
 
Join Date: Jul 2009
Posts: 3,334
Thanks: 19,393
Thanked 5,621 Times in 2,391 Posts
no1lives4ever has a reputation beyond repute
no1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond reputeno1lives4ever has a reputation beyond repute
Default

Originally Posted by NIFTY46 View Post
Sir thanks for quick reply. on amibroker
1) i wants to plot range bound candles,
2) the range candle must be small from seven days,
3) high low of plotted range bound candle must be small from last seven days daily high low,
4) plot two horizontal lines one from high and one from low
5)example png image link ;-
6)example :-buy if cross(c,ref(range, H)); AND SELL If cross(range,L,close);

Looks like you want to identify NR7 candles. There are tons of AFLs for that.

http://stockcharts.com/school/doku.p..._range_day_nr7

-- no1lives4ever
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to no1lives4ever For This Useful Post:
Reply

indiTraders - Forum for the Active Indian Trader > Tools > Software > Amibroker


Tags
afl, amibroker, codes

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT +5.5. The time now is 08:13 AM.


vBulletin Copyright by vBulletin

Content Relevant URLs by vBSEO 3.3.2