• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 12:39pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 12:39pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

I will code your scalping EAs for no charge 118 replies

Oanda MT4 - Indicators and EAs not showing 2 replies

I will code your pivot EAs for no charge 20 replies

EAs and indicators relating to moutaki... 22 replies

InterbankFX has loaded its MT4 platform with custom EAs, indicators and scripts 1 reply

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 44,700
Attachments: I will code your EAs and Indicators for no charge
Exit Attachments
Tags: I will code your EAs and Indicators for no charge
Cancel

I will code your EAs and Indicators for no charge

  • Last Post
  •  
  • 1 29952996Page 299729982999 3244
  • 1 Page 2997 3244
  •  
  • Post #59,921
  • Quote
  • Apr 4, 2023 2:34pm Apr 4, 2023 2:34pm
  •  classy
  • Joined Jun 2012 | Status: Trader , Analyst and Mentor | 5,043 Posts
Quoting classy
Disliked
{quote} My humble request all master coder to modify attached indicator for week and month same funtion thann ad one more optints to show failed/reject/bounce high low value or pips .this is very important smart money trapped/manipulate liquidity sweeped (buy/sell) one dashoborad will grate to monitor.thanks in advance. {image}
Ignored
any chance?
Say something meaningful or Silence!!
 
 
  • Post #59,922
  • Quote
  • Apr 4, 2023 3:10pm Apr 4, 2023 3:10pm
  •  Rivamann
  • | Joined Nov 2017 | Status: Member | 55 Posts
Quoting John4y
Disliked
{quote} Attached version v01 only opens position after a new candle is formed while previous responded to direct RSI level threshold position at close {file} I updated the EA to open a position only when both RSI cross at "same time" the 50 threshold level by next candle Close Maybe this one is what you're looking for ? But take care, very often RSI will cross at different moment in time and EA will reject the opening (since a "Cross" condition is a unique moment in time !) {file}
Ignored
Hello!

I tried v02 and no trades were executed. Did I do something wrong? " I updated the EA to open a position only when both RSI cross at "same time" the 50 threshold level by next candle Close Maybe this one is what you're looking for ?" this is exactly what i searching for ! "But take care, very often RSI will cross at a different moments in time " If 30m tf chart is crossing 50 level and 15m tf chart will do this at the same time, not often But some signals during the week will happen. Example (see picture) Once the candle on 30m and 15m is crossing 50 line and close 03:00am it should open a sell position. Do i have to change anything? (see settings)

Henning
Attached Image(s) (click to enlarge)
Click to Enlarge

Name: Skjermbilde.PNG
Size: 26 KB
Click to Enlarge

Name: Skjermbilde4.PNG
Size: 19 KB
 
 
  • Post #59,923
  • Quote
  • Apr 4, 2023 3:23pm Apr 4, 2023 3:23pm
  •  John4y
  • Joined Mar 2021 | Status: Member | 466 Posts
Quoting Rivamann
Disliked
{quote} Hello! I tried v02 and no trades were executed. Did I do something wrong? " I updated the EA to open a position only when both RSI cross at "same time" the 50 threshold level by next candle Close Maybe this one is what you're looking for ?" this is exactly what i searching for ! "But take care, very often RSI will cross at a different moments in time " If 30m tf chart is crossing 50 level and 15m tf chart will do this at the same time, not often But some signals during the week will happen. Example (see picture) Once the candle on...
Ignored
Simultaneous "Crosses" on different TF's are very seldon, as I already mentioned.
Try setting the RSI_Shift_TF1 & 2 at "0" i.e. Current Candle, this might help to occur more often
In order to Check for trades more frequently, run the EA on a M5 or even M1 Chart, as this happens when a New Candle has formed only !
 
 
  • Post #59,924
  • Quote
  • Apr 4, 2023 3:41pm Apr 4, 2023 3:41pm
  •  Rivamann
  • | Joined Nov 2017 | Status: Member | 55 Posts
Quoting John4y
Disliked
{quote} Simultaneous "Crosses" on different TF's are very seldon, as I already mentioned. Try setting the RSI_Shift_TF1 & 2 at "0" i.e. Current Candle, this might help to occur more often In order to Check for trades more frequently, run the EA on a M5 or even M1 Chart, as this happens when a New Candle has formed only !
Ignored

Hm, i tried with 0 and 1 on shift. some trades were executed but not at the right time as i have on manually though. Question: do i need RSI_ Shift_ TF1 and 2 ? with the standard indicator i cant choose this option.

Henning
 
 
  • Post #59,925
  • Quote
  • Edited 5:22pm Apr 4, 2023 3:50pm | Edited 5:22pm
  •  John4y
  • Joined Mar 2021 | Status: Member | 466 Posts
Quoting Rivamann
Disliked
{quote} Hm, i tried with 0 and 1 on shift. some trades were executed but not at the right time as i have on manually though. Question: do i need RSI_ Shift_ TF1 and 2 ? with the standard indicator i cant choose this option. Henning
Ignored
You can play with the settings.
Each TF and RSI are individually settable, however don't expect an EA to work the same as your manual touch !
RSI_ Shift_ TF1 and 2 are only there to select the Candle Close position at RSI Cross: 0 = Current, 1 = Previous Candle , etc...
It surely isn't "the holy grail"as you suggested !
 
 
  • Post #59,926
  • Quote
  • Apr 4, 2023 4:02pm Apr 4, 2023 4:02pm
  •  Raddyo
  • | Joined Jun 2022 | Status: Member | 23 Posts
Hello coders, please can anyone try to add on chart adjustable arrows (change colour and size) for the slope signal to this indicator.
It already has alerts. Many thanks in advance..
Attached File(s)
File Type: ex4 awesome_4_color_alerts_2_2_mtf.ex4   41 KB | 94 downloads
File Type: mq4 awesome_4_color_alerts_2_2_mtf.mq4   11 KB | 126 downloads
 
 
  • Post #59,927
  • Quote
  • Apr 4, 2023 4:56pm Apr 4, 2023 4:56pm
  •  TooSlow
  • Joined Mar 2012 | Status: Trader | 12,087 Posts
Quoting biker883
Disliked
{quote} The file to modify is DLabs Index test Pair only.mq4 I just posted the other files as they are the source for the indication used in the Pair only in iCustom (...) It was meant to be understood that when I drag and drop a pair from symbol list it automatically select the 2 currencies accordingly as it is done in the CurrencySlopeStrength attached My problem is that the constants Cur1 & Cur2 cannot be modified and I don't know how to get around the issue. May be...
Ignored
Cur1 and Cur2 are inputs. You can modify them.
My Threads: Trading is as simple as 1-2-3, Highest Open / Lowest Open Trade
 
 
  • Post #59,928
  • Quote
  • Apr 4, 2023 5:10pm Apr 4, 2023 5:10pm
  •  Slingshots1
  • Joined Feb 2012 | Status: Member | 1,462 Posts
Quoting TooSlow
Disliked
{quote} for(i=limit, r=rates_total-limit-1; i>=0; i--,r++) { double max = (r>0) ? fmax(high,close[i+1]) : close; double min = (r>0) ? fmin( low,close[i+1]) : close; double bp = (max!=min) ? close - min : 0; // selling pressure double sp = (max!=min) ? max - close : 0; // selling pressure bpma = iBp.OnCalculate(bp,r,rates_total); spma = iSp.OnCalculate(sp,r,rates_total); // add these lines of code: if( i < limit ) { if( bpma[i+1] < spma[i+1] && bpma > spma ) { Alert(Symbol()," ", " Buy " ); } else if( bpma[i+1] > spma[i+1]...
Ignored
Pls help to check why that error on 134 i already removed ( for) i know no coding so i copied and paste .
Attached Image (click to enlarge)
Click to Enlarge

Name: ff22.PNG
Size: 4 KB
 
 
  • Post #59,929
  • Quote
  • Apr 4, 2023 5:47pm Apr 4, 2023 5:47pm
  •  Rivamann
  • | Joined Nov 2017 | Status: Member | 55 Posts
Quoting John4y
Disliked
{quote} You can play with the settings. Each TF and RSI are individually settable, however don't expect an EA to work the same as your manual touch ! RSI_ Shift_ TF1 and 2 are only there to select the Candle Close position at RSI Cross: 0 = Current, 1 = Previous Candle , etc... It surely isn't "the holy grail"as you suggested !
Ignored
Okey I will play more with the setting." It surely isn't "the holy grail"as you suggested ![/quote]" have you checked the history?

Again thank you for the help
 
 
  • Post #59,930
  • Quote
  • Apr 4, 2023 6:09pm Apr 4, 2023 6:09pm
  •  kost
  • Joined Jan 2021 | Status: Member | 6 Posts
Hi everyone,
I have a couple of question to the this indicator.
I have tried to modify some options:
Add alert on touching bollinger bands (both sides)
if(AlertSignal==ON_TOUCH){
if(High[j]>=BufferUpperBand[j]) return SIGNAL_SELL;
if(Low[j]<=BufferLowerBand[j]) return SIGNAL_BUY;
if(Close[j+1]<BufferLowerBand[j+1] && Close[j]>BufferLowerBand[j]) return SIGNAL_BUY;
if(Close[j+1]>BufferUpperBand[j+1] && Close[j]<BufferUpperBand[j]) return SIGNAL_SELL;
}
Add Alert when price will touch only Upper band
if(AlertSignal==ON_TOUCH_UPPER){
if(High[j]>=BufferUpperBand[j]) return SIGNAL_SELL;
if(Close[j+1]>BufferUpperBand[j+1] && Close[j]<BufferUpperBand[j]) return SIGNAL_SELL;
}
Add Alert when price will touch only lower band
if(AlertSignal==ON_TOUCH_LOWER){
if(Low[j]<=BufferLowerBand[j]) return SIGNAL_BUY;
if(Close[j+1]<BufferLowerBand[j+1] && Close[j]>BufferLowerBand[j]) return SIGNAL_BUY;
}
as a options.
and alert is working propely only if in the begging section i will put in properties (for example for touch both bands)
enum ENUM_ALERT_SIGNAL{
ON_BREAK_OUT=0, //ON BREAK OUT OF BANDS
ON_BOUNCE_IN=0, //ON RE-ENTER IN BANDS
ON_TOUCH=1, //ON TOUCH
ON_TOUCH_UPPER=0, //ON TOUCH UPPER BAND
ON_TOUCH_LOWER=0, //ON TOUCH LOWER BAND
};

and

input ENUM_ALERT_SIGNAL AlertSignal=ON_TOUCH; //Alert Signal When

when for example when i want to change option for "bounce in" inside MT4 indicators properties
the notification on the app is going crazy and sending all possible version of text.

I am not a coder, is my very first touch with any kind of coding that;s why I am asking for help. Could somebody fix it?


Another question,
is possible to add to this indicator, option like on the screenshot that we will have bell icon which will allow us to activate one side or both side as a alarm of bollinger band, after it will be heated will deactivate by itself?
and also and a current price of the bollinger bands?

i was trying to use code from Bollinger Bands Labels indicator but i failed.


thank you in advance
Attached Image (click to enlarge)
Click to Enlarge

Name: bollinger alerts indi.jpg
Size: 105 KB
Attached File(s)
File Type: mq4 MQLTA MT4 Bollinger Bands With Alert-moj ostatni.mq4   14 KB | 115 downloads
File Type: mq4 BB Labels.mq4   2 KB | 103 downloads
 
 
  • Post #59,931
  • Quote
  • Apr 4, 2023 6:25pm Apr 4, 2023 6:25pm
  •  John4y
  • Joined Mar 2021 | Status: Member | 466 Posts
Quoting Rivamann
Disliked
{quote} Okey I will play more with the setting." It surely isn't "the holy grail"as you suggested !
Ignored
" have you checked the history? Again thank you for the help [/quote]
have you checked the history?

Which history ?
 
 
  • Post #59,932
  • Quote
  • Apr 4, 2023 7:29pm Apr 4, 2023 7:29pm
  •  luckyman777
  • | Joined Jan 2019 | Status: Member | 20 Posts
any body can help make dashboard as attach....many thank for your help...its very usefull
Attached Image (click to enlarge)
Click to Enlarge

Name: a.png
Size: 4 KB
 
 
  • Post #59,933
  • Quote
  • Apr 4, 2023 7:54pm Apr 4, 2023 7:54pm
  •  jblanked
  • Joined Sep 2022 | Status: Software Developer &amp; Music Producer | 346 Posts | Online Now
Quoting Eagle-Eye
Disliked
Anyone know how to code the order lots size in that way. Extern inputs: extern double Lot1=0.01; extern double Lot2=0.01; extern double Lot3=0.01; extern double Lot4=0.01; extern double Lot5=0.1; extern double Lot6=0.2; extern double Lot7=0.3; extern double Lot8=0.5; extern double Lot9=0.9; extern double Lot10=1.6; extern double Lot11=3.7; extern double Lot12=11.3; so it can trade to place lot sizes in that order or whatever inputs I put. Need mql code so I can use it in an EA. When order is close with TP it starts from beginning with Lots1. Will...
Ignored
Just add the variable in separate OrderSend functions...

OrderSend(_Symbol,OP_BUY,Lot1,......)
OrderSend(_Symbol,OP_BUY,Lot2,......)
etc
Software Developer and Music Producer
News Fundamentals All Time Return: 1,159.1%
 
 
  • Post #59,934
  • Quote
  • Apr 4, 2023 8:01pm Apr 4, 2023 8:01pm
  •  jblanked
  • Joined Sep 2022 | Status: Software Developer &amp; Music Producer | 346 Posts | Online Now
Quoting kasrafx
Disliked
{quote} Could this indicator be modified to use on other pairs and metals?
Ignored
Here you go:
Attached File(s)
File Type: ex4 5minutescalping-i6.ex4   15 KB | 200 downloads
Software Developer and Music Producer
News Fundamentals All Time Return: 1,159.1%
 
 
  • Post #59,935
  • Quote
  • Apr 4, 2023 8:03pm Apr 4, 2023 8:03pm
  •  jblanked
  • Joined Sep 2022 | Status: Software Developer &amp; Music Producer | 346 Posts | Online Now
Quoting Slingshots1
Disliked
{quote} Pls help to check why that error on 134 i already removed ( for) i know no coding so i copied and paste . {image}
Ignored
This means that there's extra { in the code. You either need to remove it, or add the corresponding } where it's supposed to go
Software Developer and Music Producer
News Fundamentals All Time Return: 1,159.1%
 
 
  • Post #59,936
  • Quote
  • Apr 4, 2023 8:14pm Apr 4, 2023 8:14pm
  •  jblanked
  • Joined Sep 2022 | Status: Software Developer &amp; Music Producer | 346 Posts | Online Now
Quoting Rivamann
Disliked
{quote} Hello! I tried your EA again. It looks like one chart was triggered (15m) But not on 30m tf (see picture) When the clock was 10 pm it already had crossed 9.30 pm. They must cross the 50 level at same time. Is this possible to fix? Henning {image}
Ignored
I see! This is because its waiting for the candle to close before taking the trade. For example, the 9:30pm candle starts at 9:30pm and ends at 10pm. So the close of the 9:30pm candle is at 10pm.

The EA looks at the close of the 9:30pm candle and compares that with the close of the 9pm candle (if on 30 minute chart).

If the 9pm candle closes under 50, and the 9:30pm candle closes above 50, then it "crossed the 50 line up" (and vice versa for cross down)

Attached Image (click to enlarge)
Click to Enlarge

Name: Screen Shot 2023-04-04 at 8.11.02 PM.png
Size: 2 KB


The issue with using the current candle is that you might get false crosses (price could temporarily cross over the 50 line, but then still close under the 50)

Hope that clears things up for you.
Software Developer and Music Producer
News Fundamentals All Time Return: 1,159.1%
 
 
  • Post #59,937
  • Quote
  • Edited 8:38pm Apr 4, 2023 8:19pm | Edited 8:38pm
  •  Zygimantas
  • | Joined Apr 2014 | Status: Member | 4 Posts
Hello guys. Is there any availibility to create EA from this pine script? I found this strategy on TradingView.
Inserted Code
//@version=4
//Time Frame: H1
strategy("Pin Bar Magic v1", overlay=true)
 
// User Input
usr_risk = input(title="Equity Risk (%)",type=input.integer,minval=1,maxval=100,step=1,defval=3,confirm=false)
atr_mult = input(title="Stop Loss (x*ATR, Float)",type=input.float,minval=0.1,maxval=100,step=0.1,defval=0.5,confirm=false)
slPoints = input(title="Stop Loss Trail Points (Pips)",type=input.integer,minval=1,maxval=1000,step=1,defval=1,confirm=false)
slOffset = input(title="Stop Loss Trail Offset (Pips)",type=input.integer,minval=1,maxval=1000,step=1,defval=1,confirm=false)
sma_slow = input(title="Slow SMA (Period)",type=input.integer,minval=1,maxval=500,step=1,defval=50,confirm=false)
ema_medm = input(title="Medm EMA (Period)",type=input.integer,minval=1,maxval=500,step=1,defval=18,confirm=false)
ema_fast = input(title="Fast EMA (Period)",type=input.integer,minval=1,maxval=500,step=1,defval=6,confirm=false)
atr_valu = input(title="ATR (Period)",type=input.integer,minval=1,maxval=500,step=1,defval=14,confirm=false)
ent_canc = input(title="Cancel Entry After X Bars (Period)",type=input.integer,minval=1,maxval=500,step=1,defval=3,confirm=false)
 
// Create Indicators
slowSMA = sma(close, sma_slow)
medmEMA = ema(close, ema_medm)
fastEMA = ema(close, ema_fast)
bullishPinBar = ((close > open) and ((open - low) > 0.66 * (high - low))) or ((close < open) and ((close - low) > 0.66 * (high - low)))
bearishPinBar = ((close > open) and ((high - close) > 0.66 * (high - low))) or ((close < open) and ((high - open) > 0.66 * (high - low)))
atr = atr(atr_valu)
 
// Specify Trend Conditions
fanUpTrend = (fastEMA > medmEMA) and (medmEMA > slowSMA)
fanDnTrend = (fastEMA < medmEMA) and (medmEMA < slowSMA)
 
// Specify Piercing Conditions
bullPierce = ((low < fastEMA) and (open > fastEMA) and (close > fastEMA)) or ((low < medmEMA) and (open > medmEMA) and (close > medmEMA)) or ((low < slowSMA) and (open > slowSMA) and (close > slowSMA))
bearPierce = ((high > fastEMA) and (open < fastEMA) and (close < fastEMA)) or ((high > medmEMA) and (open < medmEMA) and (close < medmEMA)) or ((high > slowSMA) and (open < slowSMA) and (close < slowSMA))
  
// Specify Entry Conditions
longEntry = fanUpTrend and bullishPinBar and bullPierce
shortEntry = fanDnTrend and bearishPinBar and bearPierce
 
// Long Entry Function
enterlong() =>
    risk = usr_risk * 0.01 * strategy.equity
    stopLoss = low[1] - atr[1] * atr_mult
    entryPrice = high[1]
    units = risk / (entryPrice - stopLoss)
    strategy.entry("long", strategy.long, units, stop=entryPrice)
    strategy.exit("exit long", from_entry="long", trail_points=slPoints, trail_offset=slOffset)
  
// Short Entry Function
entershort() =>
    risk = usr_risk * 0.01 * strategy.equity
    stopLoss = high[1] + atr[1] * atr_mult
    entryPrice = low[1]
    units = risk / (stopLoss - entryPrice)
    strategy.entry("short", strategy.short, units, stop=entryPrice)
    strategy.exit("exit short", from_entry="short", trail_points=slPoints, trail_offset=slOffset)
  
// Execute Long Entry
if (longEntry)
    enterlong()
 
// Execute Short Entry
if (shortEntry)
    entershort()
  
// Cancel the Entry if Bar Time is Exceeded
strategy.cancel("long", barssince(longEntry) > ent_canc)
strategy.cancel("short", barssince(shortEntry) > ent_canc)
 
// Force Close During Certain Conditions
strategy.close_all(when = hour==16 and dayofweek==dayofweek.friday, comment = "exit all, market-closed")
strategy.close_all(when = crossunder(fastEMA, medmEMA), comment = "exit long, re-cross")
strategy.close_all(when = crossover(fastEMA, medmEMA), comment = "exit short, re-cross")
 
// Plot Moving Averages to Chart
plot(fastEMA, color=color.red)
plot(medmEMA, color=color.blue)
plot(slowSMA, color=color.green)
 
// Plot Pin Bars to Chart
plotshape(bullishPinBar, text='Bull PB', style=shape.labeldown, location=location.abovebar, color=color.green, textcolor=color.white, transp=0)
plotshape(bearishPinBar, text='Bear PB', style=shape.labelup, location=location.belowbar, color=color.red, textcolor=color.white, transp=0)
 
// Plot Days of Week
plotshape(hour==0 and dayofweek==dayofweek.monday, text='Monday', style=shape.labeldown, location=location.abovebar, color=color.black, textcolor=color.white, transp=0)
plotshape(hour==0 and dayofweek==dayofweek.tuesday, text='Tuesday', style=shape.labeldown, location=location.abovebar, color=color.black, textcolor=color.white, transp=0)
plotshape(hour==0 and dayofweek==dayofweek.wednesday, text='Wednesday', style=shape.labeldown, location=location.abovebar, color=color.black, textcolor=color.white, transp=0)
plotshape(hour==0 and dayofweek==dayofweek.thursday, text='Thursday', style=shape.labeldown, location=location.abovebar, color=color.black, textcolor=color.white, transp=0)
plotshape(hour==0 and dayofweek==dayofweek.friday, text='Friday', style=shape.labeldown, location=location.abovebar, color=color.black, textcolor=color.white, transp=0)
plotshape(hour==16 and dayofweek==dayofweek.friday, text='Market Closed', style=shape.labeldown, location=location.abovebar, color=color.black, textcolor=color.white, transp=0)

And this is code written by ChatGPT when I asked to convert it to MQL language:
Inserted Code
//+------------------------------------------------------------------+
//|                                                   Pin Bar Magic v1|
//|                                                          THT Team|
//|                                                         2023-04-05|
//+------------------------------------------------------------------+
#property copyright "THT Team"
#property link      "https://thtteam.com/"
#property version   "1.00"
#property strict
extern int usr_risk         = 3;           // Equity Risk (%)
extern double atr_mult     = 0.5;         // Stop Loss (x*ATR, Float)
extern int slPoints        = 1;           // Stop Loss Trail Points (Pips)
extern int slOffset        = 1;           // Stop Loss Trail Offset (Pips)
extern int sma_slow        = 50;          // Slow SMA (Period)
extern int ema_medm        = 18;          // Medm EMA (Period)
extern int ema_fast        = 6;           // Fast EMA (Period)
extern int atr_valu        = 14;          // ATR (Period)
extern int ent_canc        = 3;           // Cancel Entry After X Bars (Period)
double slowSMA;
double medmEMA;
double fastEMA;
bool bullishPinBar;
bool bearishPinBar;
double atr;
//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit()
{
    SetProfitMode(false);
    SetMarginMode(1);
    return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
{
}
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
{
}
//+------------------------------------------------------------------+
//| Check if market is open                                          |
//+------------------------------------------------------------------+
bool isMarketOpen()
{
    return true;    // replace with your own implementation
}
//+------------------------------------------------------------------+
//| Specify Trend Conditions                                         |
//+------------------------------------------------------------------+
bool fanUpTrend()
{
    return (fastEMA > medmEMA) && (medmEMA > slowSMA);
}
bool fanDnTrend()
{
    return (fastEMA < medmEMA) && (medmEMA < slowSMA);
}
//+------------------------------------------------------------------+
//| Specify Piercing Conditions                                      |
//+------------------------------------------------------------------+
bool bullPierce()
{
    return ((Low[0] < fastEMA) && (Open[0] > fastEMA) && (Close[0] > fastEMA)) ||
           ((Low[0] < medmEMA) && (Open[0] > medmEMA) && (Close[0] > medmEMA)) ||
           ((Low[0] < slowSMA) && (Open[0] > slowSMA) && (Close[0] > slowSMA));
}
bool bearPierce()
{
    return ((High[0] > fastEMA) && (Open[0] < fastEMA) && (Close[0] < fastEMA)) ||
           ((High[0] > medmEMA) && (Open[0] < medmEMA) && (Close[0] < medmEMA)) ||
           ((High[0] > slowSMA) && (Open[0] < slowSMA) && (Close[0] < slowSMA));
}
//+------------------------------------------------------------------+
//| Long Entry Function                                              |
//+------------------------------------------------------------------+
void enterlong()
{
    double risk = usr_risk * 0.01 * AccountEquity();
    double stopLoss = Low[1

All my knowledge ends up here
 
 
  • Post #59,938
  • Quote
  • Apr 4, 2023 9:04pm Apr 4, 2023 9:04pm
  •  finwyse
  • | Joined Jan 2010 | Status: Member | 11 Posts
Hi All,
I will appreciate it if someone will help to fix this EA. It is based on the Demarker indicator. Simple buy and sell upon crossover. It has compilation errors. Please find attached. Looking forward to your assistance.
Attached File(s)
File Type: mq4 Cronex-t Demarker_EA.mq4   5 KB | 90 downloads
 
 
  • Post #59,939
  • Quote
  • Apr 4, 2023 10:07pm Apr 4, 2023 10:07pm
  •  jblanked
  • Joined Sep 2022 | Status: Software Developer &amp; Music Producer | 346 Posts | Online Now
Quoting finwyse
Disliked
Hi All, I will appreciate it if someone will help to fix this EA. It is based on the Demarker indicator. Simple buy and sell upon crossover. It has compilation errors. Please find attached. Looking forward to your assistance. {file}
Ignored
This code is very incomplete. The original coder did not list the variables used inside of the functions (like the Lot Size Percentage)
Software Developer and Music Producer
News Fundamentals All Time Return: 1,159.1%
 
 
  • Post #59,940
  • Quote
  • Edited 11:59pm Apr 4, 2023 11:43pm | Edited 11:59pm
  •  jblanked
  • Joined Sep 2022 | Status: Software Developer &amp; Music Producer | 346 Posts | Online Now
Quoting Zygimantas
Disliked
Hello guys. Is there any availibility to create EA from this pine script? I found this strategy on TradingView. //@version=4 //Time Frame: H1 strategy("Pin Bar Magic v1", overlay=true) // User Input usr_risk = input(title="Equity Risk (%)",type=input.integer,minval=1,maxval=100,step=1,defval=3,confirm=false) atr_mult = input(title="Stop Loss (x*ATR, Float)",type=input.float,minval=0.1,maxval=100,step=0.1,defval=0.5,confirm=false) slPoints = input(title="Stop Loss Trail Points (Pips)",type=input.integer,minval=1,maxval=1000,step=1,defval=1,confirm=false)...
Ignored
Here try this

I added and changed this:
Attached Image (click to enlarge)
Click to Enlarge

Name: Screen Shot 2023-04-04 at 11.40.22 PM.png
Size: 9 KB


I removed the lot size risk and instead used lot size (as the pine script risk equation isn't the same in MQL4)

I also removed the trails, but I added the trade functions based upon:

longEntry = fanUpTrend and bullishPinBar and bullPierce
shortEntry = fanDnTrend and bearishPinBar and bearPierce
Attached File(s)
File Type: ex4 Zygi Pinball.ex4   15 KB | 106 downloads
Software Developer and Music Producer
News Fundamentals All Time Return: 1,159.1%
 
1
  • Platform Tech
  • /
  • I will code your EAs and Indicators for no charge
  • Reply to Thread
    • 1 29952996Page 299729982999 3244
    • 1 Page 2997 3244
46 traders viewing now, 4 are members:
AntonRUz
,
Invisible
,
Zen59
,
vusingwenya
  • More
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023