can anybody code me a EA based on this strategy link below (pyramiding Strategy)
https://t.co/SnbP71JsjM
thank you to those that will assist
https://t.co/SnbP71JsjM
thank you to those that will assist
I will code your pivot EAs for no charge 28 replies
I will code your scalping EAs for no charge 163 replies
Oanda MT4 - Indicators and EAs not showing 2 replies
EAs and indicators relating to moutaki... 22 replies
InterbankFX has loaded its MT4 platform with custom EAs, indicators and scripts 1 reply
double eurusd[];
double usdjpy[];
int idx = 8; //Initial array size
double corr;
for(int j=0; j<=100; j++)
{
ArrayResize(eurusd,idx,100);
ArrayResize(usdjpy,idx,100);
for(int i=idx-1; i>=0; i--)
{
eurusd[i] = iRSI("EURUSD",0,14,PRICE_CLOSE,i);
usdjpy[i] = iRSI("USDJPY",0,14,PRICE_CLOSE,i);
}
ArrayResize(eurusd,idx);
ArrayResize(usdjpy,idx);
corr = iCorrelation(eurusd,usdjpy,idx-1, 1);
if(corr > 0.5)
{
break;
}
idx++;
} Disliked...stuck trying to program dynamic arrays within a for loop. The goal is to have two dynamic arrays containing RSI values with an initial size of 8 and then apply a correlation function. If the correlation is > 0.5, break the loop else expand the array size by 1... up until bar 100...Ignored
double arr_1[];
double arr_2[];
int size_min = 8;
for(int j=0; j<100; j++){
if(j==0){
ArrayResize(arr_1,0);//start with 0 size
ArrayResize(arr_2,0);
ArrayInitialize(arr_1,0);//if starting with non 0 size
ArrayInitialize(arr_2,0);
}
ArrayResize(arr_1,ArraySize(arr_1)+1);//increase size by 1 every loop
ArrayResize(arr_2,ArraySize(arr_2)+1);
arr_1[j] = iRSI(sym_1,,,,j);//put rsi value in in the new spot
arr_2[j] = iRSI(sym_2,,,,j);
if(j<size_min-1)continue;//if j is less than size min index, continue next loop from here
//if j>=8-1, then 8 or more rsi values exist in the arrays, go on to
if(iCorrelation()>0.5)break;
} Disliked{quote} Ok, I got the trends to show but it takes a lot of time to load & it eats up a lot of CPU. I'm sure I got the syntax screwed up. This was a Mladen indicator. Yes, I know it repaints. Can anybody help me straighten this out? {image} {file}Ignored
DislikedHi All. I need help regarding my idea. I want to create an Alert on RSI on H4/Daily Time frame. I want a currency pairs alert generates when the RSi on H4/Daily Touches 70 level of RSI same as vice versa if RSI touches 20. Kindly need help on my idea. RegardsIgnored
Disliked{quote} Is this what you are looking for? {image} Could even do them for all the indicators, takes like 30secs {image} How cool is this .. right !Ignored
Disliked{quote} Is this what you are looking for? {image} Could even do them for all the indicators, takes like 30secs {image} How cool is this .. right !Ignored
DislikedWould it be possible to add alerts after "x" amount of bars have closed for this? {file}Ignored