Simple Coding Help - No Promise.

pratapvb

Well-Known Member
Nehal

Please read my requirement for the exploration
amit just replace

filter = 1

with the relevant condition you want

like

cond1 = .....
cond 2 = .....

filter = cond1 or cond2 ;
 

Nehal_s143

Well-Known Member
What is RVI ?

Relative Vigor Index – Using the Relative Vigor Index

John Ehlers uses the crossing line indicators as signal to Buy or Sell in the market. While these signals are useful, in today’s fast paced market, they do lead to drawdowns and whipsaws. There can be no denying however that when these crossing signals work, they preempt a pending move way before many other indicators around. However, since many whipsaws are not suitable for any trader, we particularly found this technique to not be that useful. While researching on this indicator, what caught our attention was the placement of indicator at any given time with respect to the “zero” line. When the RVI remained above the zero line, it was much profitable to adopt the buy on dips strategy. Whereas, when the RVI remained below the zero line, it was more profitable to adopt the short on rally strategy. RVI in short indicated which side of traders remained in control of the market and signaled direction of underlying momentum.

Source : some website from where AFL was downloaded, dont remember exact URL
 
Last edited:

amitrandive

Well-Known Member
amit just replace

filter = 1

with the relevant condition you want

like

cond1 = .....
cond 2 = .....

filter = cond1 or cond2 ;
Pratab sir , I have made the changes but the results are not per what I require, please help :sos:

Code:
//% chg in mtf
TimeFrameSet(inDaily);
diffd = (C / Ref(C,-1))*100-100;
TimeFrameRestore();
diffd1=TimeFrameExpand(diffd,inDaily);

TimeFrameSet(inHourly);
diffh = (C / Ref(C,-1))*100-100;
TimeFrameRestore();
diffh1=TimeFrameExpand(diffh,inHourly);

TimeFrameSet(in15Minute*2);
diff30 = (C / Ref(C,-1))*100-100;
TimeFrameRestore();
diff30a=TimeFrameExpand(diff30,in15Minute*2);

TimeFrameSet(in15Minute);
diff15 = (C / Ref(C,-1))*100-100;
TimeFrameRestore();
diff15a=TimeFrameExpand(diff15,in15Minute);

TimeFrameSet(in5Minute);
diff5 = (C / Ref(C,-1))*100-100;
TimeFrameRestore();
diff5a=TimeFrameExpand(diff5,in5Minute);
Plot(C,"",47,128);
Filter=1;
AddColumn(diffd1,"daily chg",1.2, textcolor=IIf( Ref(C,- 1)>C,colorGreen,colorRed)) ;
AddColumn(diffh1,"60m chg",1.2, textcolor=IIf( Ref(C,- 1)>C,colorGreen,colorRed)) ;
AddColumn(diff30a,"30m chg",1.2, textcolor=IIf( Ref(C,- 1)>C,colorGreen,colorRed)) ;
AddColumn(diff15a,"15 chg",1.2, textcolor=IIf( Ref(C,- 1)>C,colorGreen,colorRed)) ;
AddColumn(diff5a,"5m chg",1.2, textcolor=IIf( Ref(C,- 1)>C,colorGreen,colorRed)) ;

Filter=2;
Buy=diffd1>0 AND diffh1>0 AND diff30a>0 AND diff15a>0 AND diff5a>0;
Sell=diffd1<0 AND diffh1<0 AND diff30a<0 AND diff15a<0 AND diff5a<0;
AddColumn(Filter,"Buy/Sell",1.2, textcolor=IIf(Ref(Buy,0)>0,colorGreen,colorRed)) ;
 

pratapvb

Well-Known Member
Pratab sir , I have made the changes but the results are not per what I require, please help :sos:

Code:
//% chg in mtf
TimeFrameSet(inDaily);
diffd = (C / Ref(C,-1))*100-100;
TimeFrameRestore();
diffd1=TimeFrameExpand(diffd,inDaily);

TimeFrameSet(inHourly);
diffh = (C / Ref(C,-1))*100-100;
TimeFrameRestore();
diffh1=TimeFrameExpand(diffh,inHourly);

TimeFrameSet(in15Minute*2);
diff30 = (C / Ref(C,-1))*100-100;
TimeFrameRestore();
diff30a=TimeFrameExpand(diff30,in15Minute*2);

TimeFrameSet(in15Minute);
diff15 = (C / Ref(C,-1))*100-100;
TimeFrameRestore();
diff15a=TimeFrameExpand(diff15,in15Minute);

TimeFrameSet(in5Minute);
diff5 = (C / Ref(C,-1))*100-100;
TimeFrameRestore();
diff5a=TimeFrameExpand(diff5,in5Minute);
Plot(C,"",47,128);
Filter=1;
AddColumn(diffd1,"daily chg",1.2, textcolor=IIf( Ref(C,- 1)>C,colorGreen,colorRed)) ;
AddColumn(diffh1,"60m chg",1.2, textcolor=IIf( Ref(C,- 1)>C,colorGreen,colorRed)) ;
AddColumn(diff30a,"30m chg",1.2, textcolor=IIf( Ref(C,- 1)>C,colorGreen,colorRed)) ;
AddColumn(diff15a,"15 chg",1.2, textcolor=IIf( Ref(C,- 1)>C,colorGreen,colorRed)) ;
AddColumn(diff5a,"5m chg",1.2, textcolor=IIf( Ref(C,- 1)>C,colorGreen,colorRed)) ;

Filter=2;
Buy=diffd1>0 AND diffh1>0 AND diff30a>0 AND diff15a>0 AND diff5a>0;
Sell=diffd1<0 AND diffh1<0 AND diff30a<0 AND diff15a<0 AND diff5a<0;
AddColumn(Filter,"Buy/Sell",1.2, textcolor=IIf(Ref(Buy,0)>0,colorGreen,colorRed)) ;
replace filter line I said

Buy=diffd1>0 AND diffh1>0 AND diff30a>0 AND diff15a>0 AND diff5a>0;
Sell=diffd1<0 AND diffh1<0 AND diff30a<0 AND diff15a<0 AND diff5a<0;

filter = buy or sell ;

(assuming buy and sell condition is written correctly)

remove filter = 1 and filter = 2 line..... also I think Add Column lines should be after Filter statement
 

pratapvb

Well-Known Member
What is RVI ?

Relative Vigor Index – Using the Relative Vigor Index

John Ehlers uses the crossing line indicators as signal to Buy or Sell in the market. While these signals are useful, in today’s fast paced market, they do lead to drawdowns and whipsaws. There can be no denying however that when these crossing signals work, they preempt a pending move way before many other indicators around. However, since many whipsaws are not suitable for any trader, we particularly found this technique to not be that useful. While researching on this indicator, what caught our attention was the placement of indicator at any given time with respect to the “zero” line. When the RVI remained above the zero line, it was much profitable to adopt the buy on dips strategy. Whereas, when the RVI remained below the zero line, it was more profitable to adopt the short on rally strategy. RVI in short indicated which side of traders remained in control of the market and signaled direction of underlying momentum.

Source : some website from where AFL was downloaded, dont remember exact URL
http://www.forextraders.com/forex-indicators/relative-vigor-index-indicator-explained.html
 
Now they have stopped 1500 package, point is most of forex mt4 expert advisers makes high claims of good returns but in actual most of them are failuers, is T3B comes in same category or it stands ture on claims made on website
I thought I had already replied ...

T3B does not falls in category of Forex operators.

I do not take claims on any website too seriously.

As a system, whatever T3B taught is complete, objective, logical and sound. As a trader, you still need to understand when and where to apply it.

T3B advocates 100% adherence which takes proper understanding, discipline and practice...

Most ppl do not understand the tools and the market and get carried away
 
Last edited:

amitrandive

Well-Known Member
replace filter line I said

Buy=diffd1>0 AND diffh1>0 AND diff30a>0 AND diff15a>0 AND diff5a>0;
Sell=diffd1<0 AND diffh1<0 AND diff30a<0 AND diff15a<0 AND diff5a<0;

filter = buy or sell ;

(assuming buy and sell condition is written correctly)

remove filter = 1 and filter = 2 line..... also I think Add Column lines should be after Filter statement
Pratap Sir

I have no knowledge of Amibroker coding , I have attached a picture stating my requirements ,

 

pratapvb

Well-Known Member
Pratap Sir

I have no knowledge of Amibroker coding , I have attached a picture stating my requirements ,



sorry I am not done much exploration type coding...somebody who has done that can help you....gave the inputs where I could
 

Similar threads