So the goal is to have the Stochastic value stored in the COTIndex array. However, the calculated values are in incorrect. Does anyone have a Stochastic-On-Array (iStochOnArray) implementation? or maybe does anyone see where the logical problem is on my code? I'm stuck and would greatly appreciate any help!
I have finally decided to release this indicator to the wild as i beleive that it is not the indicator that matters, it is the trader.
Attached is the indicator with the code. I have documented it pretty clearly but i intend to make a guide for it.
I has one issue i hope the community will solve. The alert and mail system is working but it sends 4 time the alert (one for each subsequent candle, see this topic )
I have finally decided to release this indicator to the wild as i beleive that it is not the indicator that matters, it is the trader.
Attached is the indicator with the code. I have documented it pretty clearly but i intend to make a guide for it.
I has one issue i hope the community will solve. The alert and mail system is working but it sends 4 time the alert (one for each subsequent candle, see this topic )
Calculate Stochastic Formula on a array (non indicator buffer array) - is iStochastic
Hi,
I need to calculate the stochastic formula on a array, this array is not a indicator buffered array. This is my code:
double
SmallestBuffer[],
LargestBuffer[],
COTIndex[];
int
COTIndexPeriod=13, //similar to Stochastic %K period
position=0;
ArrayResize(SmallestBuffer, ArraySize(Commercial));
ArrayResize(LargestBuffer, ArraySize(Commercial));
ArrayResize(COTIndex, ArraySize(Commercial));
for (i= ArraySize(Commercial)-COTIndexPeriod; i >= 0; i--)
{
position = ArrayMinimum(Commercial, COTIndexPeriod, i+COTIndexPeriod-1);
SmallestBuffer = Commercial[position];
//Print("Smallest: ", SmallestBuffer, " Index: ", i);
}
for (i= ArraySize(Commercial)-COTIndexPeriod; i >= 0; i--)
{
position = ArrayMaximum(Commercial, COTIndexPeriod, i+COTIndexPeriod-1);
LargestBuffer = Commercial[position];
//Print("Largest: ", LargestBuffer, " Index: ", i);
}
for (i= ArraySize(Commercial)-COTIndexPeriod; i >= 0; i--)
//for (i= ArraySize(Commercial)-1; i > 0; i--)
{
//position = ArrayMaximum(Commercial, COTIndexPeriod, i+COTIndexPeriod-1);
double top = Commercial-SmallestBuffer;
double bottom = LargestBuffer-SmallestBuffer;
if(bottom == 0.0) //prevent divide by zero errors
{ bottom=100.0; }
COTIndex = (top/bottom)*100;
Print("COTIndex: ", COTIndex, " Index: ", i);
ExtMapBuffer1 = COTIndex; //graph it
}
So the goal is to have the Stochastic value stored in the COTIndex array. However, the calculated values are in incorrect. Does anyone have a Stochastic-On-Array (iStochOnArray) implementation? or maybe does anyone see where the logical problem is on my code? I'm stuck and would greatly appreciate any help!
Thank you
Mike
DigiStoch
I modified DigiStoch a little bit so you can choose mode sma, ema, smma, or lwma. And you get to choose high/low or close/close in the pricefield.
do you realise the Stoch can be placed — like all other indicators
in its own window below price bars
here's 3 Stoch indis all found on ForexTSD
Sexy Stochastics Indicator
Hi everyone, for people using the sexy stochastic strategy developped by Boxingislife this will be a big helper
You can find the strategy here :
bringin sexy back - stochastics
I have finally decided to release this indicator to the wild as i beleive that it is not the indicator that matters, it is the trader.
Attached is the indicator with the code. I have documented it pretty clearly but i intend to make a guide for it.
I has one issue i hope the community will solve. The alert and mail system is working but it sends 4 time the alert (one for each subsequent candle, see this topic )
Here is a picture of it
There are too many indicators in the chart. He..he..hee
There are too many indicators in the chart. He..he..hee
Yep sorry i forgot to remove the other indicator (they were temporary on a test chart
)
My indicator is the signal with 1-2-3-4
Here is an updated screenshot. The signal is on the open of the current candle.
Hi everyone, for people using the sexy stochastic strategy developped by Boxingislife this will be a big helper
You can find the strategy here :
bringin sexy back - stochastics
I have finally decided to release this indicator to the wild as i beleive that it is not the indicator that matters, it is the trader.
Attached is the indicator with the code. I have documented it pretty clearly but i intend to make a guide for it.
I has one issue i hope the community will solve. The alert and mail system is working but it sends 4 time the alert (one for each subsequent candle, see this topic )
yepp, it's allready fixed on FF
Forex Factory - View Single Post - The sexy stochastic indicator
yepp, it's allready fixed on FF Forex Factory - View Single Post - The sexy stochastic indicator
I was just about to post the link
Thanks, hope some people will see that this indicator has a lot of potential...
Green is where signal was good, red when signal was wrong or at end of trend
with good money management this is enough