Thanks Boss,SteveHopwood wrote:What problem are you having?Fmfx wrote:Thanks Steve
Attached is the moded version.
The problem is that the ea still takes trades even when the rsi is in between 55 and 45 level (Ranging).
Thanks
Regards
Thanks Boss,SteveHopwood wrote:What problem are you having?Fmfx wrote:Thanks Steve
Attached is the moded version.
SteveHopwood wrote:I am confused.
Your source code:
extern string trsi="Rsi trend detection";
extern bool UseRsiTrendDetection=false;
extern int RsiTdTf=1440;
extern int RsiTdPeriod=20;
extern string trs="Applied price: 0=Close; 1=Open; 2=High";
extern string trs1="3=Low; 4=Median; 5=Typical; 6=Weighted";
extern int RsiTdAppliedPrice=0;
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
double TrendRsiVal;//Rsi
string RsiTrend;
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Your set file:
UseRsiTrendDetection=1
RsiTdTf=240
RsiTdTf,F=0
RsiTdTf,1=1440
RsiTdTf,2=0
RsiTdTf,3=0
RsiTdPeriod=14
RsiTdPeriod,F=0
RsiTdPeriod,1=20
RsiTdPeriod,2=0
RsiTdPeriod,3=0
trs=Applied price: 0=Close; 1=Open; 2=High
trs1=3=Low; 4=Median; 5=Typical; 6=Weighted
RsiTdAppliedPrice=0
RsiTdAppliedPrice,F=0
RsiTdAppliedPrice,1=0
RsiTdAppliedPrice,2=0
RsiTdAppliedPrice,3=0
The two do not match up. You appear to have more inputs in your set file than you have in your source code.
Forget the mtf Rsi - that is for chart display only. For an ea, you use calls to the resident RSI that ships with Empty4.Fmfx wrote:Yes boss, i think the set file is wrong, probably i mixed it.
And attached is the mtf sri indicator i was trying to incorporate.
Thanks
Don't you dare do anything of the sort. Do so and it will destroy your hard drive and burn down your home.Fmfx wrote:Thanks Boss, noted.
I will have it on my vps on monday as soon as market opens, thanks for your kind help, God bless.
Regards
Code: Select all
extern string mai="----Moving average----";
extern int MaTF=0;//Time frame defaults to current chart
extern int MaPeriod=50;
extern int MaShift=0;//The MA Shift input
extern string mame="Method: 0=sma; 1=ema; 2=smma; 3=lwma";
extern int MaMethod=1;
extern string maap="Applied price: 0=Close; 1=Open; 2=High";
extern string maap1="3=Low; 4=Median; 5=Typical; 6=Weighted";
extern int MaAppliedPrice=0;
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
double MaVal;
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Code: Select all
extern int TF=0;//Time frame defaults to current chart
extern int Period=50;
extern int Shift=0;//The MA Shift input
extern string ame="Method: 0=sma; 1=ema; 2=smma; 3=lwma";
extern int Method=1;
extern string ap="Applied price: 0=Close; 1=Open; 2=High";
extern string ap1="3=Low; 4=Median; 5=Typical; 6=Weighted";
extern int AppliedPrice=0;
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
double Val;
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////