Forex Factory (https://www.forexfactory.com/)
-   Platform Tech (https://www.forexfactory.com/forum/69-platform-tech)
-   -   I will code your EAs and Indicators for no charge (https://www.forexfactory.com/thread/166758-i-will-code-your-eas-and-indicators-for)

Jahruhay Nov 13, 2020 7:21am | Post# 41301

Good day, does anyone have the following indicator or EA that will close all positions, lets say If i have 5 or 10 current open positions, and set the indicator to 200 pips. Once the accumulative pips from the 5 positions or 10 positions reaches 200 pips. The EA will automatically close all.

And also if the SL pips is set to -100 pips, and the accumulative negative pips for the current 5 or 10 positions reaches -100 pips. It will close all.


Thanks.

Sandile Nov 13, 2020 7:36am | Post# 41302

{quote} DO U WANT THIS 2 LINES ONLY OR ANY TARGET LINES TOO ADD {image}
Just the 2 lines Sir, thanks.

simnz Nov 13, 2020 8:05am | Post# 41303

{quote} one sma {file}
Excellent.
Thank you very much.

Luciano26 Nov 13, 2020 9:24am | Post# 41304

"AutoTrendChannel 1.01 nmc" This is Mladen's tweaked one showing angle and users can defined how many numbers of bar back (smaller range or long range) it draw channel,including lines color selection {image}{image}{image} {file}

How accurate is this indicator ? In which timeframe give better results ?

ganztrade Nov 13, 2020 9:40am | Post# 41305

{image} Can anyone make a trade panel with picture example? Thank you all for your help, much appreciation!

similar what you looking for > https://www.forexfactory.com/thread/...42#post9754442

martetango Nov 13, 2020 10:39am | Post# 41306

2 Attachment(s)
Great thread
Can anyone add a "show missed pivot points until touched by price" feature, to this indicator?
And I don't know why this indicator doesn't work when backtesting.

The indi is from this thread, thanks to Wyatt for the best pivot points indicator so far!!!

 

  1. https://www.forexfactory.com/thread/538297-the-best-pivot-points-indicator-ever


Thanks in advance!!
WyattsPivots v2.1.mq4
WyattsPivots v2.1.ex4


emmy4 Nov 13, 2020 10:46am | Post# 41307

Hello BlueRain, please can you help to combine Trend Signal + Alerts indicator with Renko super signal indicator just as it is done in Absolute strength arrows indicator. Please arrows should only show up on chart if the two indicators agree with option on current/close candle. Thanks in advance.{file}{file}{file}
Hello BlueRain, I know you are very busy. Please I would appreciate, if you can look into my request.
Thanks in advance.

Rubernet Nov 13, 2020 11:37am | Post# 41308

{quote} You have probably forgot to click on autotrading or something. Just attach it to a chart here and there was no problem doing that.
Auto trading is activated still does not activate.

erex Nov 13, 2020 12:38pm | Post# 41309

1 Attachment(s)
Great thread Can anyone add a "show missed pivot points until touched by price" feature, to this indicator? And I don't know why this indicator doesn't work when backtesting. The indi is from this thread, thanks to Wyatt for the best pivot points indicator so far!!! https://www.forexfactory.com/thread/538297-the-best-pivot-points-indicator-ever Thanks in advance!! {file} {file}
Click to Enlarge

Name: Screenshot_1.png
Size: 140 KB

romeo000 Nov 13, 2020 1:07pm | Post# 41310

Howdy, All the senior traders, coders and members!
I need an EA, basically an EA for Stoploss
This should be the workflow for that EA

  1. It can auto calculate the ATR value (DAILY ATR like GBPUSD = 120pips, EURUSD = 70pips) but it should auto calculate not fixed ATR values
  2. we can manually enter the ATR value i.e 0.5xATR (so that it will take 0.5x VALUE OF ATR FOR THAT PAIR )
  3. after we are in a trade, once price moves that ENTERED ATR value in our direction
  4. EA should move our SL at BE
  5. that's it


Thanks
Regards : Romeo


imdisaait Nov 13, 2020 6:11pm | Post# 41311

2 Attachment(s)
Dear Coders

Pls help me, is it possible to include Bollinger band indicator into "pipware-charts indicator"...???
So Bollinger band to be appear in each of these multi charts in the bottom -

Thanks Imdi
Click to Enlarge

Name: pipware-chart.JPG
Size: 190 KB
pipware-charts.ex4

gusismith452 Nov 13, 2020 7:32pm | Post# 41312

Hello, can someone help me tidy up my robot. What I want is for it to open trades when a candle closes above a MA (say 13MA) and close it when a candle closes below the same MA. I don't want the SL and TP to be flexible. This means the I should be able to set my SL and TP or not even use them at all. The reverse should happen for the Sell.

I used a software to generate the following codes but it insists on using SL and TP and opens trades whenever a candle moves across the MA without waiting for it to close.

Please help me make this to function according to my description.

Here is the code I generated:



//+------------------------------------------------------------------+
// DO NOT DELETE THIS HEADER
// DELETING THIS HEADER IS COPYRIGHT INFRIGMENT
//
// Copyright 2020, ForexEAdvisor.com
// ForexEAdvisor MT5 EA Builder version 0.3
// https://www.ForexEAdvisor.com
//
// THIS EA CODE HAS BEEN GENERATED USING FOREXEADVISOR STRATEGY BUILDER 0.3
// on: 11/13/2020 11:32:29 PM
// Disclaimer: This EA is provided to you "AS-IS", and ForexEAdvisor disclaims any warranty
// or liability obligations to you of any kind.
// UNDER NO CIRCUMSTANCES WILL FOREXEADVISOR BE LIABLE TO YOU, OR ANY OTHER PERSON OR ENTITY,
// FOR ANY LOSS OF USE, REVENUE OR PROFIT, LOST OR DAMAGED DATA, OR OTHER COMMERCIAL OR
// ECONOMIC LOSS OR FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, STATUTORY, PUNITIVE,
// EXEMPLARY OR CONSEQUENTIAL DAMAGES WHATSOEVER RELATED TO YOUR USE OF THIS EA OR
// FOREXEADVISOR STRATEGY BUILDER
// Because software is inherently complex and may not be completely free of errors, you are
// advised to verify this EA. Before using this EA, please read the ForexEAdvisor Strategy Builder
// license for a complete understanding of ForexEAdvisor' disclaimers.
// USE THIS EA AT YOUR OWN RISK.
//
// Before adding this expert advisor to a chart, make sure there are NO
// open positions.
// DO NOT DELETE THIS HEADER
// DELETING THIS HEADER IS COPYRIGHT INFRIGMENT
//+------------------------------------------------------------------+

#include <Trade\Trade.mqh>
input int MagicNumber=10001;
input double Lots =0.1;
input double StopLoss=0;
input double TakeProfit=0;
input int TrailingStop=0;
//+------------------------------------------------------------------+
// expert start function
//+------------------------------------------------------------------+
ENUM_MA_METHOD MethodMigrate(int method)
{
switch(method)
{
case 0: return(MODE_SMA);
case 1: return(MODE_EMA);
case 2: return(MODE_SMMA);
case 3: return(MODE_LWMA);
default: return(MODE_SMA);
}
}

ENUM_STO_PRICE StoFieldMigrate(int field)
{
switch(field)
{
case 0: return(STO_LOWHIGH);
case 1: return(STO_CLOSECLOSE);
default: return(STO_LOWHIGH);
}
}
ENUM_APPLIED_PRICE PriceMigrate(int price)
{
switch(price)
{
case 1: return(PRICE_CLOSE);
case 2: return(PRICE_OPEN);
case 3: return(PRICE_HIGH);
case 4: return(PRICE_LOW);
case 5: return(PRICE_MEDIAN);
case 6: return(PRICE_TYPICAL);
case 7: return(PRICE_WEIGHTED);
default: return(PRICE_CLOSE);
}
}
ENUM_TIMEFRAMES TFMigrate(int tf)
{
switch(tf)
{
case 0: return(PERIOD_CURRENT);
case 1: return(PERIOD_M1);
case 5: return(PERIOD_M5);
case 15: return(PERIOD_M15);
case 30: return(PERIOD_M30);
case 60: return(PERIOD_H1);
case 240: return(PERIOD_H4);
case 1440: return(PERIOD_D1);
case 10080: return(PERIOD_W1);
case 43200: return(PERIOD_MN1);

case 2: return(PERIOD_M2);
case 3: return(PERIOD_M3);
case 4: return(PERIOD_M4);
case 6: return(PERIOD_M6);
case 10: return(PERIOD_M10);
case 12: return(PERIOD_M12);
case 16385: return(PERIOD_H1);
case 16386: return(PERIOD_H2);
case 16387: return(PERIOD_H3);
case 16388: return(PERIOD_H4);
case 16390: return(PERIOD_H6);
case 16392: return(PERIOD_H8);
case 16396: return(PERIOD_H12);
case 16408: return(PERIOD_D1);
case 32769: return(PERIOD_W1);
case 49153: return(PERIOD_MN1);
default: return(PERIOD_CURRENT);
}
}

#define MODE_MAIN 0
#define MODE_SIGNAL 1
#define MODE_PLUSDI 1
#define MODE_MINUSDI 2
#define MODE_OPEN 0
#define MODE_LOW 1
#define MODE_HIGH 2
#define MODE_CLOSE 3
#define MODE_VOLUME 4
#define MODE_REAL_VOLUME 5

#define OP_BUY 0 //Buy
#define OP_SELL 1 //Sell
#define OP_BUYLIMIT 2 //Pending order of BUY LIMIT type
#define OP_SELLLIMIT 3 //Pending order of SELL LIMIT type
#define OP_BUYSTOP 4 //Pending order of BUY STOP type
#define OP_SELLSTOP 5 //Pending order of SELL STOP type
//---
#define MODE_TRADES 0
#define MODE_HISTORY 1
#define SELECT_BY_POS 0
#define SELECT_BY_TICKET 1
//---
#define DOUBLE_VALUE 0
#define FLOAT_VALUE 1
#define LONG_VALUE INT_VALUE
//---
#define CHART_BAR 0
#define CHART_CANDLE 1
//---
#define MODE_ASCEND 0
#define MODE_DESCEND 1
//---
#define MODE_TIME 5
#define MODE_BID 9
#define MODE_ASK 10
#define MODE_POINT 11
#define MODE_DIGITS 12
#define MODE_SPREAD 13
#define MODE_STOPLEVEL 14
#define MODE_LOTSIZE 15
#define MODE_TICKVALUE 16
#define MODE_TICKSIZE 17
#define MODE_SWAPLONG 18
#define MODE_SWAPSHORT 19
#define MODE_STARTING 20
#define MODE_EXPIRATION 21
#define MODE_TRADEALLOWED 22
#define MODE_MINLOT 23
#define MODE_LOTSTEP 24
#define MODE_MAXLOT 25
#define MODE_SWAPTYPE 26
#define MODE_PROFITCALCMODE 27
#define MODE_MARGINCALCMODE 28
#define MODE_MARGININIT 29
#define MODE_MARGINMAINTENANCE 30
#define MODE_MARGINHEDGED 31
#define MODE_MARGINREQUIRED 32
#define MODE_FREEZELEVEL 33
//---
#define EMPTY -1
void OnTick()
{
CTrade trade;
trade.SetExpertMagicNumber(MagicNumber);
double Ask=SymbolInfoDouble(_Symbol,SYMBOL_ASK);
double Bid=SymbolInfoDouble(_Symbol,SYMBOL_BID);
double MyPoint=_Point;
if(_Digits==3 || _Digits==5) MyPoint=_Point*10;
double TheStopLoss=0;
double TheTakeProfit=0;
if( TotalOrdersCount()==0 )
{

if((iClose(_Symbol, PERIOD_CURRENT,0)>iMAMQL4(NULL,PERIOD_M5,13,0,MODE_SMA,PRICE_CLOSE,0))) // Here is your open buy rule
{
trade.PositionOpen(_Symbol,ORDER_TYPE_BUY,Lots,SymbolInfoDouble(_Symbol,SYMBOL_ASK),SymbolInfoDouble(_Symbol,SYMBOL_ASK)-StopLoss*MyPoint,SymbolInfoDouble(_Symbol,SYMBOL_ASK)+TakeProfit*MyPoint);
return;
}

if((iClose(_Symbol, PERIOD_CURRENT,0)<iMAMQL4(NULL,PERIOD_M5,13,0,MODE_SMA,PRICE_CLOSE,0))) // Here is your open Sell rule
{
trade.PositionOpen(_Symbol,ORDER_TYPE_SELL,Lots,SymbolInfoDouble(_Symbol,SYMBOL_BID),SymbolInfoDouble(_Symbol,SYMBOL_BID)+StopLoss*MyPoint,SymbolInfoDouble(_Symbol,SYMBOL_BID)-TakeProfit*MyPoint);
return;
}

}

int posTotal=PositionsTotal();
for(int posIndex=posTotal-1;posIndex>=0;posIndex--)
{
ulong ticket=PositionGetTicket(posIndex);
if(PositionSelectByTicket(ticket) && PositionGetInteger(POSITION_MAGIC)==MagicNumber)
{
if(PositionGetInteger(POSITION_TYPE)==POSITION_TYPE_BUY)
{
if((iClose(_Symbol, PERIOD_CURRENT,0)<iMAMQL4(NULL,PERIOD_M5,13,0,MODE_SMA,PRICE_CLOSE,0))) //here is your close buy rule
{
trade.PositionClose(ticket);
break;
}

if(TrailingStop>0)
{
if(SymbolInfoDouble(_Symbol,SYMBOL_BID)-PositionGetDouble(POSITION_PRICE_OPEN)>MyPoint*TrailingStop)
{
if(PositionGetDouble(POSITION_SL)<SymbolInfoDouble(_Symbol,SYMBOL_BID)-MyPoint*TrailingStop)
{
trade.PositionModify(ticket,SymbolInfoDouble(_Symbol,SYMBOL_BID)-MyPoint*TrailingStop,PositionGetDouble(POSITION_TP));
return;
}
}
}
}

if(PositionGetInteger(POSITION_TYPE)==POSITION_TYPE_SELL)
{
if((iClose(_Symbol, PERIOD_CURRENT,0)>iMAMQL4(NULL,PERIOD_M5,13,0,MODE_SMA,PRICE_CLOSE,0))) // here is your close sell rule
{
trade.PositionClose(ticket);
break;
}
if(TrailingStop>0)
{
if(PositionGetDouble(POSITION_PRICE_OPEN)-SymbolInfoDouble(_Symbol,SYMBOL_ASK)>MyPoint*TrailingStop)
{
if(PositionGetDouble(POSITION_SL)>SymbolInfoDouble(_Symbol,SYMBOL_ASK)+MyPoint*TrailingStop)
{
trade.PositionModify(ticket,SymbolInfoDouble(_Symbol,SYMBOL_ASK)+MyPoint*TrailingStop,PositionGetDouble(POSITION_TP));
return;
}
}
}
}
}
}
return;
}

int TotalOrdersCount()
{
int result=0;
int posTotal=PositionsTotal();
for(int posIndex=posTotal-1;posIndex>=0;posIndex--)
{
ulong ticket=PositionGetTicket(posIndex);
if(PositionSelectByTicket(ticket) && PositionGetInteger(POSITION_MAGIC)==MagicNumber) result++;
}
return (result);
}

int Hour()
{
MqlDateTime tm;
TimeCurrent(tm);
return(tm.hour);
}
int Minute()
{
MqlDateTime tm;
TimeCurrent(tm);
return(tm.min);
}
double CopyBufferMQL4(int handle,int index,int shift)
{
double buf[];
switch(index)
{
case 0: if(CopyBuffer(handle,0,shift,1,buf)>0)
return(buf[0]); break;
case 1: if(CopyBuffer(handle,1,shift,1,buf)>0)
return(buf[0]); break;
case 2: if(CopyBuffer(handle,2,shift,1,buf)>0)
return(buf[0]); break;
case 3: if(CopyBuffer(handle,3,shift,1,buf)>0)
return(buf[0]); break;
case 4: if(CopyBuffer(handle,4,shift,1,buf)>0)
return(buf[0]); break;
default: break;
}
return(EMPTY_VALUE);
}


double iACMQL4(string symbol,
int tf,
int shift)
{
ENUM_TIMEFRAMES timeframe=TFMigrate(tf);
int handle=iAC(symbol,timeframe);
if(handle<0)
{
return(-1);
}
else
return(CopyBufferMQL4(handle,0,shift));
}


double iADMQL4(string symbol,
int tf,
int shift)
{
ENUM_TIMEFRAMES timeframe=TFMigrate(tf);
int handle=(int)iAD(symbol,timeframe,VOLUME_TICK);
if(handle<0)
{
return(-1);
}
else
return(CopyBufferMQL4(handle,0,shift));
}

double iAlligatorMQL4(string symbol,
int tf,
int jaw_period,
int jaw_shift,
int teeth_period,
int teeth_shift,
int lips_period,
int lips_shift,
int method,
int price,
int mode,
int shift)
{
ENUM_TIMEFRAMES timeframe=TFMigrate(tf);
ENUM_MA_METHOD ma_method=MethodMigrate(method);
ENUM_APPLIED_PRICE applied_price=PriceMigrate(price);
int handle=iAlligator(symbol,timeframe,jaw_period,jaw_shift,
teeth_period,teeth_shift,
lips_period,lips_shift,
ma_method,applied_price);
if(handle<0)
{
return(-1);
}
else
return(CopyBufferMQL4(handle,mode-1,shift));
}

double iADXMQL4(string symbol,
int tf,
int period,
int price,
int mode,
int shift)
{
ENUM_TIMEFRAMES timeframe=TFMigrate(tf);
ENUM_APPLIED_PRICE applied_price=PriceMigrate(price);
int handle=iADX(symbol,timeframe,period);
if(handle<0)
{
return(-1);
}
else
return(CopyBufferMQL4(handle,mode,shift));
}
double iAOMQL4(string symbol,
int tf,
int shift)
{
ENUM_TIMEFRAMES timeframe=TFMigrate(tf);
int handle=iAO(symbol,timeframe);
if(handle<0)
{
return(-1);
}
else
return(CopyBufferMQL4(handle,0,shift));
}
double iATRMQL4(string symbol,
int tf,
int period,
int shift)
{
ENUM_TIMEFRAMES timeframe=TFMigrate(tf);
int handle=iATR(symbol,timeframe,period);
if(handle<0)
{
return(-1);
}
else
return(CopyBufferMQL4(handle,0,shift));
}

double iBearsPowerMQL4(string symbol,
int tf,
int period,
int price,
int shift)
{
ENUM_TIMEFRAMES timeframe=TFMigrate(tf);
int handle=iBearsPower(symbol,timeframe,period);
if(handle<0)
{
return(-1);
}
else
return(CopyBufferMQL4(handle,0,shift));
}

double iBullsPowerMQL4(string symbol,
int tf,
int period,
int price,
int shift)
{
ENUM_TIMEFRAMES timeframe=TFMigrate(tf);
int handle=iBullsPower(symbol,timeframe,period);
if(handle<0)
{
return(-1);
}
else
return(CopyBufferMQL4(handle,0,shift));
}

double iBandsMQL4(string symbol,
int tf,
int period,
double deviation,
int bands_shift,
int method,
int mode,
int shift)
{
ENUM_TIMEFRAMES timeframe=TFMigrate(tf);
ENUM_MA_METHOD ma_method=MethodMigrate(method);
int handle=iBands(symbol,timeframe,period,
bands_shift,deviation,ma_method);
if(handle<0)
{
return(-1);
}
else
return(CopyBufferMQL4(handle,mode,shift));
}
double iCCIMQL4(string symbol,
int tf,
int period,
int price,
int shift)
{
ENUM_TIMEFRAMES timeframe=TFMigrate(tf);
ENUM_APPLIED_PRICE applied_price=PriceMigrate(price);
int handle=iCCI(symbol,timeframe,period,price);
if(handle<0)
{
return(-1);
}
else
return(CopyBufferMQL4(handle,0,shift));
}

double iDeMarkerMQL4(string symbol,
int tf,
int period,
int shift)
{
ENUM_TIMEFRAMES timeframe=TFMigrate(tf);
int handle=iDeMarker(symbol,timeframe,period);
if(handle<0)
{
return(-1);
}
else
return(CopyBufferMQL4(handle,0,shift));
}
double EnvelopesMQL4(string symbol,
int tf,
int ma_period,
int method,
int ma_shift,
int price,
double deviation,
int mode,
int shift)
{
ENUM_TIMEFRAMES timeframe=TFMigrate(tf);
ENUM_MA_METHOD ma_method=MethodMigrate(method);
ENUM_APPLIED_PRICE applied_price=PriceMigrate(price);
int handle=iEnvelopes(symbol,timeframe,
ma_period,ma_shift,ma_method,
applied_price,deviation);
if(handle<0)
{
return(-1);
}
else
return(CopyBufferMQL4(handle,mode-1,shift));
}

double iForceMQL4(string symbol,
int tf,
int period,
int method,
int price,
int shift)
{
ENUM_TIMEFRAMES timeframe=TFMigrate(tf);
ENUM_MA_METHOD ma_method=MethodMigrate(method);
int handle=iForce(symbol,timeframe,period,ma_method,VOLUME_TICK);
if(handle<0)
{
return(-1);
}
else
return(CopyBufferMQL4(handle,0,shift));
}

double iFractalsMQL4(string symbol,
int tf,
int mode,
int shift)
{
ENUM_TIMEFRAMES timeframe=TFMigrate(tf);
int handle=iFractals(symbol,timeframe);
if(handle<0)
{
return(-1);
}
else
return(CopyBufferMQL4(handle,mode-1,shift));
}

double iBWMFIMQL4(string symbol,
int tf,
int shift)
{
ENUM_TIMEFRAMES timeframe=TFMigrate(tf);
int handle=(int)iBWMFI(symbol,timeframe,VOLUME_TICK);
if(handle<0)
{
return(-1);
}
else
return(CopyBufferMQL4(handle,0,shift));
}

double iMomentumMQL4(string symbol,
int tf,
int period,
int price,
int shift)
{
ENUM_TIMEFRAMES timeframe=TFMigrate(tf);
ENUM_APPLIED_PRICE applied_price=PriceMigrate(price);
int handle=iMomentum(symbol,timeframe,period,applied_price);
if(handle<0)
{
return(-1);
}
else
return(CopyBufferMQL4(handle,0,shift));
}
double iMFIMQL4(string symbol,
int tf,
int period,
int shift)
{
ENUM_TIMEFRAMES timeframe=TFMigrate(tf);
int handle=(int)iMFI(symbol,timeframe,period,VOLUME_TICK);
if(handle<0)
{
return(-1);
}
else
return(CopyBufferMQL4(handle,0,shift));
}
double iMAMQL4(string symbol,
int tf,
int period,
int ma_shift,
int method,
int price,
int shift)
{
ENUM_TIMEFRAMES timeframe=TFMigrate(tf);
ENUM_MA_METHOD ma_method=MethodMigrate(method);
ENUM_APPLIED_PRICE applied_price=PriceMigrate(price);
int handle=iMA(symbol,timeframe,period,ma_shift,
ma_method,applied_price);
if(handle<0)
{
return(-1);
}
else
return(CopyBufferMQL4(handle,0,shift));
}
double iMACDMQL4(string symbol,
int tf,
int fast_ema_period,
int slow_ema_period,
int signal_period,
int price,
int mode,
int shift)
{
ENUM_TIMEFRAMES timeframe=TFMigrate(tf);
ENUM_APPLIED_PRICE applied_price=PriceMigrate(price);
int handle=iMACD(symbol,timeframe,
fast_ema_period,slow_ema_period,
signal_period,applied_price);
if(handle<0)
{
return(-1);
}
else
return(CopyBufferMQL4(handle,mode,shift));
}

double iOBVMQL4(string symbol,
int tf,
int price,
int shift)
{
ENUM_TIMEFRAMES timeframe=TFMigrate(tf);
int handle=iOBV(symbol,timeframe,VOLUME_TICK);
if(handle<0)
{
return(-1);
}
else
return(CopyBufferMQL4(handle,0,shift));
}
double iSARMQL4(string symbol,
int tf,
double step,
double maximum,
int shift)
{
ENUM_TIMEFRAMES timeframe=TFMigrate(tf);
int handle=iSAR(symbol,timeframe,step,maximum);
if(handle<0)
{
return(-1);
}
else
return(CopyBufferMQL4(handle,0,shift));
}
double iRSIMQL4(string symbol,
int tf,
int period,
int price,
int shift)
{
ENUM_TIMEFRAMES timeframe=TFMigrate(tf);
ENUM_APPLIED_PRICE applied_price=PriceMigrate(price);
int handle=iRSI(symbol,timeframe,period,applied_price);
if(handle<0)
{
return(-1);
}
else
return(CopyBufferMQL4(handle,0,shift));
}

double iStdDevMQL4(string symbol,
int tf,
int ma_period,
int ma_shift,
int method,
int price,
int shift)
{
ENUM_TIMEFRAMES timeframe=TFMigrate(tf);
ENUM_MA_METHOD ma_method=MethodMigrate(method);
ENUM_APPLIED_PRICE applied_price=PriceMigrate(price);
int handle=iStdDev(symbol,timeframe,ma_period,ma_shift,
ma_method,applied_price);
if(handle<0)
{
return(-1);
}
else
return(CopyBufferMQL4(handle,0,shift));
}
double iStochasticMQL4(string symbol,
int tf,
int Kperiod,
int Dperiod,
int slowing,
int method,
int field,
int mode,
int shift)
{
ENUM_TIMEFRAMES timeframe=TFMigrate(tf);
ENUM_MA_METHOD ma_method=MethodMigrate(method);
ENUM_STO_PRICE price_field=StoFieldMigrate(field);
int handle=iStochastic(symbol,timeframe,Kperiod,Dperiod,
slowing,ma_method,price_field);
if(handle<0)
{
return(-1);
}
else
return(CopyBufferMQL4(handle,mode,shift));
}
double iWPRMQL4(string symbol,
int tf,
int period,
int shift)
{
ENUM_TIMEFRAMES timeframe=TFMigrate(tf);
int handle=iWPR(symbol,timeframe,period);
if(handle<0)
{
return(-1);
}
else
return(CopyBufferMQL4(handle,0,shift));
}



Thanks

Carmenia1 Nov 13, 2020 8:31pm | Post# 41313

Hi I have an indicator that i would like pop up and push alerts added to! the code keeps sending back errors. please can you help. thanks.

romeo000 Nov 13, 2020 9:50pm | Post# 41314

{quote} Hi classy maybe i share my experienced for how decision to trade. Please see my pics, for example we focus on "JPY" , I opened 7 chart who have JPY , why 7 chart because all calculation on CSM base indicator only focus on major currency such as USD, GBP, CAD, CHF, EUR, NZD, AUD, JPY...so 7 chart means JPY versus 7 others currency. On the pics you can see RED BOX (as prepared for short) and BLUE BOX (prepare for long), also if you have running price in middle (consider is a so so signal). Let me explained in detail > why RED BOX? because...
HEy, thanks for such a great explanation, i want to know more about this method of trading

so tell me a few more things please!
what is your TP & SL once you get a trade
we aren't needed to compare prices with XAU as well if we don't want to trade ay pair cross with XAU?
all we need to do is too start observing the pair on 2/7 , open all of it's cross pairs
if we have opened all pairs of CPM2, and our mainly focused currency is base currency, so we are looking to go LONG
then we will look for that cross in which the price is still moving in the lower section of our screen? and we go LONG on that?

Jahruhay Nov 13, 2020 11:32pm | Post# 41315

Good day, does anyone have the following EA that will close all positions, lets say If i have 5 or 10 current open positions, and set the indicator to 200 pips. Once the accumulative pips from the 5 positions or 10 positions reaches 200 pips. The EA will automatically close all.

And also if the SL pips is set to -100 pips, and the accumulative negative pips for the current 5 or 10 positions reaches -100 pips. It will close all.


Thanks.

overvloed2 Nov 14, 2020 3:36am | Post# 41316

1 Attachment(s)
Dear Readers,

Is there anyone in this forum who can fix next error in the EA below?
error is; '{' - name expected
Kinderspel edit M1-5 55-45.mq4
Thank you.
Herman

ganztrade Nov 14, 2020 3:40am | Post# 41317

{quote} HEy, thanks for such a great explanation, i want to know more about this method of trading so tell me a few more things please! what is your TP & SL once you get a trade we aren't needed to compare prices with XAU as well if we don't want to trade ay pair cross with XAU? all we need to do is too start observing the pair on 2/7 , open all of it's cross pairs if we have opened all pairs of CPM2, and our mainly focused currency is base currency, so we are looking to go LONG then we will look for that cross in which the price is still moving...
My TP > Breakeven+1 lock and do trail... no TP; (and if you ask more, there's one another exit point if ..rank 2 lose it power become rank 3/4..or rank 7 become rank 5/6...then I close trade manually)
My SL > No SL, because, I use small capital ex: 50$~200 ... so Margin Call is my SL (why should use SL? ), if your capital more than 200$ use SL base your affordable risk . I don't believe in SL, I always see, it's like some hidden program always make a candle move to touch the SL - even your analysis was right ( I check maybe about 20 brand of broker ). So, my best way, use small amount money, and go no SL. . I feel more comfort. Of course, you need to management your LOTS vs PIPS TO Margin Call. Don't be become a gambler.

if you focus on USD/EUR/JPY/CAD/CHF/NZD/GBP/AUD, use only indicator CPM_NG (NG= non gold) or another correlation currency indicator;

I trade mostly on gold(XAU), then I need CPM with gold with those ooanda demo account who have XAU chart (if you don't trade XAU, skip indicator cpm_xau and ooanda demo account).

Yes I focus on rank 2 and rank 7, (but many trader do in cross 1 vs 8 ), my point of view, why focus rank 2 or 7, because there's will one pair left still fighting, rank 1 vs rank 2 / rank 7 vs rank 8... and that currency usually the last currency that will be left behind (not moving/moving but slow because the pressure), to confirm that, that's why i put 7 chart and see which candidate and best candidate...focus USD (chart USDJPY, USDCAD, USDCHF, NZDUSD, GBPUSD, EURUSD, AUDUSD).
I already give two pictures example focus on USD and focus on JPY (see past my post).

we will look for that cross in which the price is still moving in the lower section of our screen? and we go LONG on that?


Yes the lower ( but make sure the other candidate being eliminate first by move go up and pass/break middle zone yellow box) then the lower is the last pair...and current running price didn't break middle/yellow box. IF all candidate at the same time move/break middle, this is not a signal, don't do trade.

Test it on demo first, for get the melody. . This pure manual trading system, and need a lot of patience. Yesterday I only got 1$ @[email protected]

Regards

Chandrubsc17 Nov 14, 2020 3:58am | Post# 41318

Hi
I want to convert one indicator into EA....

rollertrade Nov 14, 2020 4:06am | Post# 41319

{quote} {file} not exactly what you are after however you may find some use if your request doesn't get answered
thanks!

fxscalpers Nov 14, 2020 4:13am | Post# 41320

1 Attachment(s)
Hello would you be able to recode this MACD with vertical line back to MT4? I have this recommended by a user in MQL5 forum but my platform is MT4 so if anyone could transform it back to the old MT4 would be very much appreciated. Thank you in advance
Please see attached
MACD Intersection Main and Signal.mq5


© Forex Factory