Simple Coding Help - No Promise.

amitrandive

Well-Known Member
Dear All

A small help needed for exploration,I am trying to explore to sort out as per T1 or T2,but not getting it.


Code:
TF=(ATR(1)*100/ATR(14));IQF=ATR(20)*100/Close;
T1=TF>2 AND IQF<100;
T2=TF>2 AND IQF>100;
Filter=T1 OR T2;
AddColumn(C,"close",1.2);
AddColumn(TF,"TF",1.2);
AddColumn(IQF,"IQF",1.2);
AddColumn(IIf(T1,T1,Null)  ," High "  ,6.2,1.2,colorGreen);
AddColumn(IIf(T2,T2,Null)," Low ",6.2,1.2,colorOrange);
 

extremist

Well-Known Member
Dear All

A small help needed for exploration,I am trying to explore to sort out as per T1 or T2,but not getting it.


Code:
TF=(ATR(1)*100/ATR(14));IQF=ATR(20)*100/Close;
T1=TF>2 AND IQF<100;
T2=TF>2 AND IQF>100;
Filter=T1 OR T2;
AddColumn(C,"close",1.2);
AddColumn(TF,"TF",1.2);
AddColumn(IQF,"IQF",1.2);
AddColumn(IIf(T1,T1,Null)  ," High "  ,6.2,1.2,colorGreen);
AddColumn(IIf(T2,T2,Null)," Low ",6.2,1.2,colorOrange);
Dear amit this code is frm wise stock
i seen ur comment there. by seeing ur comment there i chked it yday and was surprised tht wht is the zing in code ?
tht was prompted u to like tht thing.

it might be possible tht i completely missed tht zing and i'm then plz elaborate it to me.

The thing i understood frm code is tht ....

wht ever he said is not matching the calculation of code.
if u plot those lines u can see tht TF is always been greatr than 2
and
IQF will always be lesser than 100 so u will always be in T1 condition
so ur not getting exploration right.
Actually the code is wrong

correct me if i'm wrong.
 

amitrandive

Well-Known Member
Dear amit this code is frm wise stock
i seen ur comment there. by seeing ur comment there i chked it yday and was surprised tht wht is the zing in code ?
tht was prompted u to like tht thing.

it might be possible tht i completely missed tht zing and i'm then plz elaborate it to me.

The thing i understood frm code is tht ....

wht ever he said is not matching the calculation of code.
if u plot those lines u can see tht TF is always been greatr than 2
and
IQF will always be lesser than 100 so u will always be in T1 condition
so ur not getting exploration right.
Actually the code is wrong

correct me if i'm wrong.

extremist
Thanks for reply.Actually what got me interested is that this code proposes to quantify the trend strength for next day trading based on ATR.

I agree that IQF will always be greater than 2,but there are many instances when TF is lesser than 100,maybe we can get some high probability setups by exploring those conditions.

Is that possible?
 

a1b1trader

Well-Known Member
@a1b1trader

no u can not expand the data u have in EOD format to IEOD format.

simple thing is tht how come the software will make the intermediate time stamped data?
it is impossible to do this.
on the other hand u can get eod out of ieod. and i hope u might be getting tht.
Yes, but I do not want to expand EOD to smaller timeframe.
I just want, that I can see that much EOD data in daily/weekly charts

And there is a provision of mixing EOD and intraday data in Ami.
File -> Database Setting -> Intraday Settings -> Allow mixed EOD/Intraday data (a checkbox in the bottom)

Otherwise I have to delete one minute and/or tick data to make space in amibroker

Thanks
 

trash

Well-Known Member
@a1b1trader

no u can not expand the data u have in EOD format to IEOD format.

simple thing is tht how come the software will make the intermediate time stamped data?
it is impossible to do this.
on the other hand u can get eod out of ieod. and i hope u might be getting tht.
Wrong, if you mean that AB can not mix EOD with intraday! Listen pal, here is some good worldly wisdom, if you don't know anything for sure then better don't say anything at all but better keep quite and listen to people who know for sure. You can still post your wisdom but if you don't know for sure then at least add AFAIK at the start of your sentence. If you just post "No you can not" there will always be someone like me or anyone else who knows better (for sure) who will "rap you over the knuckles".

Amibroker supports mixed EOD with intraday data in same symbol for every data source! That's what DB setting "Allow mixed EOD/intraday data" is all about. Extracted info from the help:

".
.
.
If this is turned on then in intraday modes EOD bars are removed on-the-fly and in daily mode EOD bars are displayed instead of time compressed intraday or if there is no EOD bar for corresponding day then intraday bars are compressed as usual.
.
.
.
Mixed mode allows intraday plus very long daily histories in one database."
As for built-in streaming plugins like IQFeed etc they take care automatically. But if using ASCII import then you need to take care of another thing. If mixing ASCII EOD with intraday of the same symbol then as for EOD data you have to skip time column otherwise the data will get treated as intraday data!! Well, that is obvious because computers are dumb and can not (yet) look into your brain that says "Now I want this one getting treated as EOD data within existing intraday data despite of having a time column... My dear dear Mr. Bits-and-bytes, have you got that?".
 

trash

Well-Known Member
Further I have some tickers in 1 min data in my database for say last 2 years that I want to change/replace with eod data for last 18 months. Can I do it without any problem. Can I save EOD data files in IEOD data settings.

Yes, you can do that. Data base settings - Intraday settings - check "Allow mixed EOD/ intraday data". Iimport your ASCII EOD data to the same symbol but skip time column. If you wanna shorten your intraday data history (as you said) then do that first.
 

extremist

Well-Known Member
update
Wrong, if you mean that AB can not mix EOD with intraday! Listen pal, here is some good worldly wisdom, if you don't know anything for sure then better don't say anything at all but better keep quite and listen to people who know for sure. You can still post your wisdom but if you don't know for sure then at least add AFAIK at the start of your sentence. If you just post "No you can not" there will always be someone like me or anyone else who knows better (for sure) who will "rap you over the knuckles".

Amibroker supports mixed EOD with intraday data in same symbol for every data source! That's what DB setting "Allow mixed EOD/intraday data" is all about. Extracted info from the help:



As for built-in streaming plugins like IQFeed etc they take care automatically. But if using ASCII import then you need to take care of another thing. If mixing ASCII EOD with intraday of the same symbol then as for EOD data you have to skip time column otherwise the data will get treated as intraday data!! Well, that is obvious because computers are dumb and can not (yet) look into your brain that says "Now I want this one getting treated as EOD data within existing intraday data despite of having a time column... My dear dear Mr. Bits-and-bytes, have you got that?".
i might have misinterpreted the actual problem of A1B1trader but after saying tht line i cleared wht i understood.
but u .....
u may have so called knowledge.....
but with tht knowledge if u have so much of attitude then it become useless.....
anyways .....
i'm here to learn and share wht i know lill.

i don't mind called me dumb
coz u can only learn when u accept the fact tht u r still to learn more.
and i admit always tht i still have very limited knowledge.
some may say tht i don't know at all.
but the way u reply is some time too much harder than needed.

and some body needed u to remind tht.
so taking the hard initiative.

BE HAPPY......

and actually after my reply he has again clarified wht he means.
if i would have got tht before then i wouldn't have used such line.
 
Last edited:

trash

Well-Known Member
update

i might have misinterpreted the actual problem of A1B1trader but after saying tht line i cleared wht i understood.
but u .....
u may have so called knowledge.....
but with tht knowledge if u have so much of attitude then it become useless.....
anyways .....
i'm here to learn and share wht i know lill.

i don't mind called me dumb
coz u can only learn when u accept the fact tht u r still to learn more.
and i admit always tht i still have very limited knowledge.
some may say tht i don't know at all.
but the way u reply is some time too much harder than needed.

and some body needed u to remind tht.
so taking the hared initiative.

BE HAPPY......

and actually after my reply he has again clarified wht he means.
if i would have got tht before then i wouldn't have used such line.
Firstly you should not write in SMS talk abbreviating every second word. That makes you posts hardly readable but rather annoying. Are you ten years old? Secondly I have not said at all that you would be dumb but in fact I said that you should not claim something as fact if you actually don't know for sure. It's of no surprise that the whole Internet is filled with so much nonsense because everyone has to say something no matter what it is. That's not a problem at all with one exception ... i.e. if it is related to some serious technical stuff then everyone should take care that what is said is bullet proof otherwise it is useless chit chat without any quality in it. I further said that you should rather add something like "AFAIK" at the start of your sentence if you are not sure and having just basic knowledge. That way you make yourself less vulnerable. Of course you are still free to continue ignoring good advice. But don't be surprised if you get set straight again by someone else.
 

Similar threads