indiTraders - Forum for the Active Indian Trader  

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

GFDL
Reply
 
Bookmark and Share LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 23-09-2010, 12:34 AM
sonyaseth's Avatar
sonyaseth sonyaseth is offline
Regular
 
Join Date: Jul 2010
Posts: 10
Thanks: 3
Thanked 16 Times in 5 Posts
sonyaseth is on a distinguished road
Default afl for a specific time of a day

i need a afl which can explore price of stocks at any time suppose stock prices of all at 2.3o pm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 23-09-2010, 01:51 AM
edakad's Avatar
edakad edakad is offline
`
 
Join Date: Mar 2009
Posts: 1,240
Thanks: 2,698
Thanked 4,442 Times in 1,139 Posts
edakad has a reputation beyond repute
edakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond repute
Default

seems u r after code

Code:
dataTime = 142900; //depends on ur time display settings
Cl = ValueWhen(DataTime == TimeNum(),C); 
Filter =1;
AddColumn(Cl,"Close at 2.30");
__________________
Just because it's not popular doesn't mean it isn't Great
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 5 Users Say Thank You to edakad For This Useful Post:
  #3 (permalink)  
Old 23-09-2010, 07:54 PM
sonyaseth's Avatar
sonyaseth sonyaseth is offline
Regular
 
Join Date: Jul 2010
Posts: 10
Thanks: 3
Thanked 16 Times in 5 Posts
sonyaseth is on a distinguished road
Default

_SECTION_BEGIN("Main Parameters");
dataTime = 142900; //depends on ur time display settings
Cl = ValueWhen(DataTime == TimeNum(),C);
Filter =1;
AddColumn(Cl,"Close at 2.30
_SECTION_END


this is showing no result in windos
neither on charts
-------------
this is my afl


_SECTION_BEGIN("1430");
mdatenum = NumToStr(Now(3));

mydatenum = NumToStr(DateNum());

Hi=ValueWhen((mdatenum==mydatenum) AND ((TimeNum() > 142800 AND TimeNum() <= 143000) OR TimeNum() == 143000),C,1);


GfxSelectFont("Times New Roman", 10, 700, True );




Title = Name()+" --price at 14.30 "+ WriteVal(Hi);

Buy = Hi;
Sell = Hi;
Buy = ExRem(Buy, Sell);
Sell = ExRem(Sell, Buy);
//Bought = Flip(Buy, Sell);
//Sold = Flip(Sell, Buy);
BuyPrice=ValueWhen(Buy,C);
SellPrice=ValueWhen(Sell,C);
Filter=(Buy OR Sell );;
AddColumn(IIf(Buy,BuyPrice,Null)," Buy ", 6.2,1,colorGreen);
AddColumn(IIf(Sell,SellPrice,Null)," sell ",6.2,1,colorOrange);
_SECTION_END();


i want price to come in exploration window price showing onc charts but no on windos
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 23-09-2010, 08:03 PM
edakad's Avatar
edakad edakad is offline
`
 
Join Date: Mar 2009
Posts: 1,240
Thanks: 2,698
Thanked 4,442 Times in 1,139 Posts
edakad has a reputation beyond repute
edakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond repute
Default

which timeframe u used

also add this line in code

printf("\n"+timenum())

and see the timenum printed in interpretation window
__________________
Just because it's not popular doesn't mean it isn't Great
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 23-09-2010, 08:26 PM
edakad's Avatar
edakad edakad is offline
`
 
Join Date: Mar 2009
Posts: 1,240
Thanks: 2,698
Thanked 4,442 Times in 1,139 Posts
edakad has a reputation beyond repute
edakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond repute
Default

apply this code to a chart and see the timenum() printed in interpretation window. create a new afl with this code only and apply.

Code:
dataTime = 142900; //TimeNum depends on ur time display settings
Cl = ValueWhen(DataTime == TimeNum(),C); 
Filter =1;
AddColumn(Cl,"Close at 2.30");

printf("\n"+TimeNum());
also set the time display setting as in chart



the result of exploration depends on the time display setting.

u should use 1, 5, 10 min etc charts/exploration periodicity whick have a bar closing at XX.30 time
ie. if u use 7 min chart, u wont get any data

still problem persists, tell me the timenum() displayed in ur interpretation window any bar
__________________
Just because it's not popular doesn't mean it isn't Great

Last edited by edakad; 23-09-2010 at 08:30 PM.
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 edakad For This Useful Post:
  #6 (permalink)  
Old 23-09-2010, 08:43 PM
vishyvishy's Avatar
vishyvishy vishyvishy is offline
MCX ke Daku
 
Join Date: Mar 2010
Posts: 844
Thanks: 940
Thanked 1,388 Times in 614 Posts
vishyvishy is a splendid one to beholdvishyvishy is a splendid one to beholdvishyvishy is a splendid one to beholdvishyvishy is a splendid one to beholdvishyvishy is a splendid one to beholdvishyvishy is a splendid one to beholdvishyvishy is a splendid one to beholdvishyvishy is a splendid one to beholdvishyvishy is a splendid one to beholdvishyvishy is a splendid one to beholdvishyvishy is a splendid one to behold
Default

You are genius Ed!

...This is working Fine for me!

Thanks!
__________________
"You know my methods, Watson!"
...रानातं उनं नसतं!!
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 vishyvishy For This Useful Post:
  #7 (permalink)  
Old 23-09-2010, 08:56 PM
edakad's Avatar
edakad edakad is offline
`
 
Join Date: Mar 2009
Posts: 1,240
Thanks: 2,698
Thanked 4,442 Times in 1,139 Posts
edakad has a reputation beyond repute
edakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond reputeedakad has a reputation beyond repute
Default

Originally Posted by vishyvishy View Post
You are genius Ed!

...This is working Fine for me!

Thanks!

pls don't exaggerate
__________________
Just because it's not popular doesn't mean it isn't Great
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 edakad For This Useful Post:
  #8 (permalink)  
Old 26-09-2010, 04:28 PM
SamBa. SamBa. is offline
I am a retard
 
Join Date: Oct 2009
Posts: 171
Thanks: 9
Thanked 117 Times in 71 Posts
SamBa. is infamous around these partsSamBa. is infamous around these partsSamBa. is infamous around these parts
Default

Thanks for your code, Edakad! It's quiete useful.

But could you please add or change it that it only shows the the one data for each day when I choose all quotations or more than one day because right now it is showing the same data of each time of a day when choosing more than one look back for each quote.

Sorry for my English, hope you understand what I mean.

Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

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


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


GFDL

All times are GMT +5.5. The time now is 08:16 PM.


vBulletin Copyright by vBulletin

Content Relevant URLs by vBSEO 3.3.2