Using 10.7_3.30STO_wTS_HT ALERT in an EA
- traderduke
- Trader
- Posts: 306
- Joined: Mon Nov 28, 2011 7:30 pm
- Location: East Coast USA
Using 10.7_3.30STO_wTS_HT ALERT in an EA
Can anybody show me the syntax set up for using Tommas's stoc indicator?? I have the Wpr S&R & the mas indictors working but I can't get the stochastic working. I attached the EA & the WprS&R indicator for testing.
Thank you for any help
Ray
Thank you for any help
Ray
You do not have the required permissions to view the files attached to this post.
- milanese
- TechAdmin
- Posts: 3293
- Joined: Wed Jan 09, 2013 9:02 am
- Location: btr rdx, r8 +
Using 10.7_3.30STO_wTS_HT ALERT in an EA
Hi Ray,traderduke » Wed Jul 30, 2014 5:54 pm wrote:Can anybody show me the syntax set up for using Tommas's stoc indicator?? I have the Wpr S&R & the mas indictors working but I can't get the stochastic working. I attached the EA & the WprS&R indicator for testing.
Thank you for any help
Ray
as for an use in an EA you do not need the extra funtions the indicator has and there will be no need for the MTF capacity, it will do it just using the "normal" stoch, like here http://www.stevehopwoodforex.com/phpBB3 ... =37&t=3565
Cheers
Tommaso
Global Prime is the official SHF broker 
Searching for Servers and Workstations with individual configuration?
Just PM
Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
Searching for Servers and Workstations with individual configuration?
Just PM
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
- traderduke
- Trader
- Posts: 306
- Joined: Mon Nov 28, 2011 7:30 pm
- Location: East Coast USA
Using 10.7_3.30STO_wTS_HT ALERT in an EA
Tommaso
Please look at lines 303-307 that's where I tried to use the Dream team function but no worky. The get stochastic seems to be my problem. I put it in and took it out.
Thanks
Ray
Please look at lines 303-307 that's where I tried to use the Dream team function but no worky. The get stochastic seems to be my problem. I put it in and took it out.
Thanks
Ray
- milanese
- TechAdmin
- Posts: 3293
- Joined: Wed Jan 09, 2013 9:02 am
- Location: btr rdx, r8 +
Using 10.7_3.30STO_wTS_HT ALERT in an EA
Try this:traderduke » Fri Aug 01, 2014 7:33 pm wrote:Tommaso
Please look at lines 303-307 that's where I tried to use the Dream team function but no worky. The get stochastic seems to be my problem. I put it in and took it out.
Thanks
Ray
Code: Select all
if(d==1 && BrokerHasSundayCandle && Period()==1440) m_bar=m_bar+1;
dStochMain[0]=GetStochastic(Symbol(),PERIOD_H4,KPeriod,DPeriod,Slowing,Method,Price,MODE_MAIN,0);
dStochMain[1]=GetStochastic(Symbol(),PERIOD_H4,KPeriod,DPeriod,Slowing,Method,Price,MODE_MAIN,m_bar+1);
DailyStochMain=GetStochastic(Symbol(),HigherTF_Used,K_period_HT,D_period_HT,S_period_HT,STOCH_MAIN_Ma_HT,STOCH_MAIN_Price_HT,MODE_MAIN,0);
WeeklyStochMain=GetStochastic(Symbol(),HigherTF2_Used,K_period_HT,D_period_HT,S_period_HT,STOCH_MAIN_Ma_HT,STOCH_MAIN_Price_HT,MODE_MAIN,0);Code: Select all
double GetStochastic(string symbol,int tf,int kp,int dp,int slow,int meth,double pri,int mode,int shift)
{
return(iStochastic(symbol,tf,kp,dp,slow,meth,pri,mode,shift));
}//double GetStochastic(int tf, int shift)Tommaso
Global Prime is the official SHF broker 
Searching for Servers and Workstations with individual configuration?
Just PM
Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
Searching for Servers and Workstations with individual configuration?
Just PM
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
- traderduke
- Trader
- Posts: 306
- Joined: Mon Nov 28, 2011 7:30 pm
- Location: East Coast USA
Using 10.7_3.30STO_wTS_HT ALERT in an EA
Tommaso
I couldn't get it to compile, 6 errors such as: arrays required , d -undeclared identifier etc. Check out lines 296 to 299 ???
Thanks
Ray
I couldn't get it to compile, 6 errors such as: arrays required , d -undeclared identifier etc. Check out lines 296 to 299 ???
Thanks
Ray
You do not have the required permissions to view the files attached to this post.
- milanese
- TechAdmin
- Posts: 3293
- Joined: Wed Jan 09, 2013 9:02 am
- Location: btr rdx, r8 +
Using 10.7_3.30STO_wTS_HT ALERT in an EA
sure you must do some changes in your code to use this like defining the arrays ecc..traderduke » Fri Aug 01, 2014 8:48 pm wrote:Tommaso
I couldn't get it to compile, 6 errors such as: arrays required , d -undeclared identifier etc. Check out lines 296 to 299 ???
Thanks
Ray
Code: Select all
double dStochMain[8];Tommaso
Global Prime is the official SHF broker 
Searching for Servers and Workstations with individual configuration?
Just PM
Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
Searching for Servers and Workstations with individual configuration?
Just PM
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
- traderduke
- Trader
- Posts: 306
- Joined: Mon Nov 28, 2011 7:30 pm
- Location: East Coast USA
Using 10.7_3.30STO_wTS_HT ALERT in an EA
Tommaso
I afraid I'm not getting it. Is it possible to put the 3 stoc's in a void that can be put into any EA.
Sorry, I wish I was as good a coder as you think I am.
Thank you for your interest
Ray
I afraid I'm not getting it. Is it possible to put the 3 stoc's in a void that can be put into any EA.
Sorry, I wish I was as good a coder as you think I am.
Thank you for your interest
Ray
- milanese
- TechAdmin
- Posts: 3293
- Joined: Wed Jan 09, 2013 9:02 am
- Location: btr rdx, r8 +
Using 10.7_3.30STO_wTS_HT ALERT in an EA
try this modified code it should work.. Cheerstraderduke » Wed Aug 06, 2014 10:42 am wrote:Tommaso
I afraid I'm not getting it. Is it possible to put the 3 stoc's in a void that can be put into any EA.
Sorry, I wish I was as good a coder as you think I am.
Thank you for your interest
Ray
Tommaso
You do not have the required permissions to view the files attached to this post.
Global Prime is the official SHF broker 
Searching for Servers and Workstations with individual configuration?
Just PM
Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
Searching for Servers and Workstations with individual configuration?
Just PM
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
- traderduke
- Trader
- Posts: 306
- Joined: Mon Nov 28, 2011 7:30 pm
- Location: East Coast USA
Using 10.7_3.30STO_wTS_HT ALERT in an EA
tommaso
The EA apparently isn't seeing the daily & weekly stoc. Both sells went against the daily & weekly stoc's. this was a backtest of course. I loaded the 10.7_3.3 indicator onto the backtest chart in the beginning of the test. I was seeing the same thing during forward testing.
-see attached picture
Any ideas??
Ray
The EA apparently isn't seeing the daily & weekly stoc. Both sells went against the daily & weekly stoc's. this was a backtest of course. I loaded the 10.7_3.3 indicator onto the backtest chart in the beginning of the test. I was seeing the same thing during forward testing.
-see attached picture
Any ideas??
Ray
You do not have the required permissions to view the files attached to this post.
- milanese
- TechAdmin
- Posts: 3293
- Joined: Wed Jan 09, 2013 9:02 am
- Location: btr rdx, r8 +
Using 10.7_3.30STO_wTS_HT ALERT in an EA
The 10.7 stoch indi is not working in backtest proper, please check your EA in forwardtest, I did a look in your code and it should work as intended..traderduke » Mon Aug 11, 2014 3:07 am wrote:tommaso
The EA apparently isn't seeing the daily & weekly stoc. Both sells went against the daily & weekly stoc's. this was a backtest of course. I loaded the 10.7_3.3 indicator onto the backtest chart in the beginning of the test. I was seeing the same thing during forward testing.
-see attached picture
Any ideas??
Ray
Cheers
Tommaso
Global Prime is the official SHF broker 
Searching for Servers and Workstations with individual configuration?
Just PM
Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
Searching for Servers and Workstations with individual configuration?
Just PM
NOTE: Cookies and JavaScript are required for the using the board, with full functionality