Simple Coding Help - No Promise.

Giraffe

Well-Known Member
I am using Automatic Analysis to scan market for moving average crossovers and want to display an additional column displaying Highest Value of Close in past 50 bars. The code I am trying is given below. But I am not getting the additional column "High". I am trying in Ami 5.60.2 and used both Old and New Auto Analysis, but not getting the additional column in any of it.

Buy = Cross( MA(Close, 15 ) , MA(Close, 75 ));

Sell = Cross( MA(Close, 75 ) , MA(Close, 15 ));

AddColumn(HHV(Close,50), "High");


Can't figure out what I am doing wrong...:confused::confused:
 

KelvinHand

Well-Known Member
I am using Automatic Analysis to scan market for moving average crossovers and want to display an additional column displaying Highest Value of Close in past 50 bars. The code I am trying is given below. But I am not getting the additional column "High". I am trying in Ami 5.60.2 and used both Old and New Auto Analysis, but not getting the additional column in any of it.

Buy = Cross( MA(Close, 15 ) , MA(Close, 75 ));

Sell = Cross( MA(Close, 75 ) , MA(Close, 15 ));

AddColumn(HHV(Close,50), "High");


Can't figure out what I am doing wrong...:confused::confused:
When you face problem, learn to look into the self guide.
http://www.amibroker.com/guide/h_exploration.html


Without Filter, how the Exploration know what you want
Put
Filter = Buy or Sell;
Before AddColumn
 

Giraffe

Well-Known Member
When you face problem, learn to look into the self guide.
http://www.amibroker.com/guide/h_exploration.html


Without Filter, how the Exploration know what you want
Put
Filter = Buy or Sell;
Before AddColumn
Thanks Kelvin

I already tried with Filter also, but the result is same with/without Filter.

Even with filter I am getting the same list without the additional column.

Here is the screenshot.....

 
Last edited:

KelvinHand

Well-Known Member
OK, reuploading
But its getting small on posting, become OK by clicking on the bar above "This image has been resized, Click the bar to view full image."

The direct link is:
http://s21.postimg.org/wz94ere1j/imgjpg.jpg

[/url]
Why you press the scan button ? Press "Exploration", Apply to "Filter"
Scan is fixed. When you do a scan, it will always show "Symbols, Trade, Date Close"

Only Exploration can custom what you want.


Very strange, most people got the itch hand will touch anything cause of curiosity
But you are not :D
 
Last edited:

Giraffe

Well-Known Member
Why you press the scan button ? Press "Exploration", Apply to "Filter"
Scan is fixed. When you do a scan, it will always show "Symbols, Trade, Date Close"

Only Exploration can custom what you want.


Very strange, most people got the itch hand will touch anything cause of curiosity
But you are not :D
:rofl::rofl::rofl:

Oooooopssssssss..........heheeheeeee.....:p
It worked.......:thumb::thumb:
Thanks a lot......:clapping::clapping:
 
This code for RSI divergence seems to have some issue.Pl. correct it.

RBP = ( ( RSI( 9 ) >= HHV( RSI( 9 ), 9 ) ) AND ( Close < HHV( Close, 9 ) ) ) OR ( ( Close <= LLV( Close, 9 ) ) AND ( RSI( 9 ) > LLV( RSI( 9 ), 9 ) ) );
//RSI -ve
RBN = ( ( RSI( 9 ) <= LLV( RSI( 9 ), 9 ) ) AND ( Close > LLV( Close, 9 ) ) ) OR ( ( Close >= HHV( Close, 9 ) ) AND ( RSI( 9 ) < HHV( RSI( 9 ), 9 ) ) );
 

pratapvb

Well-Known Member
This code for RSI divergence seems to have some issue.Pl. correct it.

RBP = ( ( RSI( 9 ) >= HHV( RSI( 9 ), 9 ) ) AND ( Close < HHV( Close, 9 ) ) ) OR ( ( Close <= LLV( Close, 9 ) ) AND ( RSI( 9 ) > LLV( RSI( 9 ), 9 ) ) );
//RSI -ve
RBN = ( ( RSI( 9 ) <= LLV( RSI( 9 ), 9 ) ) AND ( Close > LLV( Close, 9 ) ) ) OR ( ( Close >= HHV( Close, 9 ) ) AND ( RSI( 9 ) < HHV( RSI( 9 ), 9 ) ) );
code seems ok subject to
1. It is not comparing corresponding close...that is the HHV close maybe on a diff bar from HHV of RSI. But I don't think this should be a big issue.

2. more importantly, is the fact that it will detect only RSI divergences that happen within 9 bars
 
Last edited:

Similar threads