• Welcome back! Thank you for being a part of this Traders Community. Let's discuss and share :)
    Selamat datang kembali! Trimakasih telah menjadi bagian dari Komunitas Trader ini. Mari berdiskusi dan berbagi :)

Suggestion I will make a Free EA with your Indicator

Dear Tanaka ,I am now making EA by using the custom indicator code below,can you tell me the value of buffer 1 and buffer 2 to decide buy and sell, thanks a lot!

property copyright ""
#property link ""

#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Lime
#property indicator_width1 2
#property indicator_label1 "Buy"
#property indicator_color2 Red
#property indicator_width2 2
#property indicator_label2 "Sell"

double G_ibuf_76[];
double G_ibuf_80[];
extern int FasterMovingAverage = 5;
extern int SlowerMovingAverage = 12;
extern int RSIPeriod = 12;
extern int MagicFilterPeriod = 1;
extern int BollingerbandsPeriod = 10;
extern int BollingerbandsShift = 0;
extern double BollingerbandsDeviation = 0.5;
extern int BullsPowerPeriod = 50;
extern int BearsPowerPeriod = 50;
extern bool Alerts = TRUE;
extern int Utstup = 10;
int Gi_unused_128 = 0;
bool Gi_132 = FALSE;
bool Gi_136 = FALSE;
bool Gi_140 = FALSE;
bool Gi_144 = FALSE;
bool Gi_148 = FALSE;
bool Gi_152 = FALSE;
bool Gi_156 = FALSE;
bool Gi_160 = FALSE;
bool Gi_164 = FALSE;
bool Gi_168 = FALSE;
int Gi_172 = 0;
bool Gi_176 = FALSE;
bool Gi_180 = FALSE;

// E37F0136AA3FFAF149B351F6A4C948E9
int init() {
SetIndexStyle(0, DRAW_ARROW, EMPTY);
SetIndexArrow(0, 233);
SetIndexBuffer(0, G_ibuf_76);
SetIndexStyle(1, DRAW_ARROW, EMPTY);
SetIndexArrow(1, 234);
SetIndexBuffer(1, G_ibuf_80);
return (0);
}

// 52D46093050F38C27267BCE42543EF60
int deinit() {
return (0);
}

// EA2B2676C28C0DB26D39331A336C6B92
int start() {
int Li_8;
double ima_12;
double ima_20;
double ima_28;
double ima_36;
double irsi_44;
double irsi_52;
double ibullspower_60;
double ibullspower_68;
double ibearspower_76;
double ibearspower_84;
double Ld_92;
double Ld_100;
double Ld_108;
double Ld_116;
double Ld_124;
double Ld_132;
double Ld_140;
double ibands_152;
double ibands_160;
double ibands_168;
double ibands_176;
int Li_148 = IndicatorCounted();
if (Li_148 < 0) return (-1);
if (Li_148 > 0) Li_148--;
int Li_0 = Bars - Li_148;
for (int Li_4 = 0; Li_4 <= Li_0; Li_4++) {
Li_8 = Li_4;
Ld_132 = 0;
Ld_140 = 0;
for (Li_8 = Li_4; Li_8 <= Li_4 + 10; Li_8++) Ld_140 += MathAbs(High[Li_8] - Low[Li_8]);
Ld_132 = Ld_140 / 10.0;
ima_12 = iMA(NULL, 0, FasterMovingAverage, 0, MODE_EMA, PRICE_CLOSE, Li_4);
ima_28 = iMA(NULL, 0, FasterMovingAverage, 0, MODE_EMA, PRICE_CLOSE, Li_4 + 1);
ima_20 = iMA(NULL, 0, SlowerMovingAverage, 0, MODE_EMA, PRICE_CLOSE, Li_4);
ima_36 = iMA(NULL, 0, SlowerMovingAverage, 0, MODE_EMA, PRICE_CLOSE, Li_4 + 1);
irsi_44 = iRSI(NULL, 0, RSIPeriod, PRICE_CLOSE, Li_4);
irsi_52 = iRSI(NULL, 0, RSIPeriod, PRICE_CLOSE, Li_4 + 1);
ibullspower_60 = iBullsPower(NULL, 0, BullsPowerPeriod, PRICE_CLOSE, Li_4);
ibullspower_68 = iBullsPower(NULL, 0, BullsPowerPeriod, PRICE_CLOSE, Li_4 + 1);
ibearspower_76 = iBearsPower(NULL, 0, BearsPowerPeriod, PRICE_CLOSE, Li_4);
ibearspower_84 = iBearsPower(NULL, 0, BearsPowerPeriod, PRICE_CLOSE, Li_4 + 1);
ibands_152 = iBands(NULL, 0, BollingerbandsPeriod, BollingerbandsDeviation, BollingerbandsShift, PRICE_CLOSE, MODE_UPPER, Li_4);
ibands_160 = iBands(NULL, 0, BollingerbandsPeriod, BollingerbandsDeviation, BollingerbandsShift, PRICE_CLOSE, MODE_LOWER, Li_4);
ibands_168 = iBands(NULL, 0, BollingerbandsPeriod, BollingerbandsDeviation, BollingerbandsShift, PRICE_CLOSE, MODE_UPPER, Li_4 + 1);
ibands_176 = iBands(NULL, 0, BollingerbandsPeriod, BollingerbandsDeviation, BollingerbandsShift, PRICE_CLOSE, MODE_LOWER, Li_4 + 1);
Ld_92 = iHighest(NULL, 0, MODE_HIGH, MagicFilterPeriod, Li_4);
Ld_100 = iHighest(NULL, 0, MODE_LOW, MagicFilterPeriod, Li_4);
Ld_108 = 100 - 100.0 * ((Ld_92 - 0.0) / 10.0);
Ld_116 = 100 - 100.0 * ((Ld_100 - 0.0) / 10.0);
if (Ld_108 == 0.0) Ld_108 = 0.0000001;
if (Ld_116 == 0.0) Ld_116 = 0.0000001;
Ld_124 = Ld_108 - Ld_116;
if (Ld_124 >= 0.0) {
Gi_148 = TRUE;
Gi_168 = FALSE;
} else {
if (Ld_124 < 0.0) {
Gi_148 = FALSE;
Gi_168 = TRUE;
}
}
if (Close[Li_4] > ibands_152 && Close[Li_4 + 1] >= ibands_168) {
Gi_144 = FALSE;
Gi_164 = TRUE;
}
if (Close[Li_4] < ibands_160 && Close[Li_4 + 1] <= ibands_176) {
Gi_144 = TRUE;
Gi_164 = FALSE;
}
if (ibullspower_60 > 0.0 && ibullspower_68 > ibullspower_60) {
Gi_140 = FALSE;
Gi_160 = TRUE;
}
if (ibearspower_76 < 0.0 && ibearspower_84 < ibearspower_76) {
Gi_140 = TRUE;
Gi_160 = FALSE;
}
if (irsi_44 > 50.0 && irsi_52 < 50.0) {
Gi_136 = TRUE;
Gi_156 = FALSE;
}
if (irsi_44 < 50.0 && irsi_52 > 50.0) {
Gi_136 = FALSE;
Gi_156 = TRUE;
}
if (ima_12 > ima_20 && ima_28 < ima_36) {
Gi_132 = TRUE;
Gi_152 = FALSE;
}
if (ima_12 < ima_20 && ima_28 > ima_36) {
Gi_132 = FALSE;
Gi_152 = TRUE;
}
if (Gi_132 == TRUE && Gi_136 == TRUE && Gi_144 == TRUE && Gi_140 == TRUE && Gi_148 == TRUE && Gi_172 != 1) {
G_ibuf_76[Li_4] = Low[Li_4] - (Point * Utstup); //1.3 * Ld_132;
if (Li_4 <= 2 && Alerts && (!Gi_176)) {
Alert(Symbol(), " ", Period(), " BUY");
Gi_176 = TRUE;
Gi_180 = FALSE;
}
Gi_172 = 1;
} else {
if (Gi_152 == TRUE && Gi_156 == TRUE && Gi_164 == TRUE && Gi_160 == TRUE && Gi_168 == FALSE && Gi_172 != 2) {
G_ibuf_80[Li_4] = High[Li_4] + (Point * Utstup); // 1.3 * Ld_132;
if (Li_4 <= 2 && Alerts && (!Gi_180)) {
Alert(Symbol(), " ", Period(), " SELL");
Gi_180 = TRUE;
Gi_176 = FALSE;
}
Gi_172 = 2;
}
}
}
return (0);
}
I have errors in the terminal...
 
Oh, you are talking about buy sell limit order?
How can I code it? Just blank to put value?


Mr. Tanaka, thank you for your patience. add the buy limit and sell limit as a function of the expert equal to stop sell and stop buy. interconnect the functions for buy limit, sell limit in "x percent, take profit and stop loss, trailing stop, martingale".
 

Attachments

  • hma buy limit, sell limit.jpg
    hma buy limit, sell limit.jpg
    569.4 KB · Views: 77
リンク先見てみましたが、ピンクの太いラインは、MA200ですね? ぜんぜん10レベル以下にならないのですが。。。。全部10にタッチしたらBUYですよね?


upload_2018-11-1_16-58-45.png
 

Attachments

  • upload_2018-11-1_16-58-45.png
    upload_2018-11-1_16-58-45.png
    23.8 KB · Views: 761
Tanaka
these indicators 0ay not be profitable by default but by making EA we can find profitable settings and proper pairs.
please do any and then we can start testing.
capture_20181101131633.png
 

Attachments

  • capture_20181101131633.png
    capture_20181101131633.png
    13.4 KB · Views: 808
Please Make EA From my Personal 100% Profitable Strategy?

Strategy is Below Explained

1. MA 5 Exponential your own Colour
2. MA 8 Exponential your own Colour
3. MA 13 Exponential your own Colour
4. MA 21 Exponential your own Colour
5. MA 200 Exponential your own Colour

Stochastic Oscillator Settings

K period 9
D period 3
Slowing 5
Levels 10 - 50 - 90

Strategy is so simple can worked on any time frame

Buy Conditions
when Stochastic Oscillator and all Moving Averages Meet on Level 10 Then Buy.

Sell Conditions
when Stochastic Oscillator and all Moving Averages Meet on Level 90 Then Sell.

i am using this strategy almost 1 year Going on with 99% success Ration because every Time frame and every Pair Need different TP and SL.

you can Download Template i have attached

So I am Waiting for your Good Reply.
 

Attachments

Back
Top