Martingale
against the trend
The limit
positions have to be pending orders so we can see them on the chart.
A martingale "string" is provided below which shows the distance
between
positions and the size of each lot. Each string is either a buy string or a sell
string.
THREE TP
RULES, we need to have three options for TP. We can select which one to use.
First TP rule: If the market moves
up N pips interval(INPUT), sell. If it
moves down the same interval, from the sell position, close it with profit,
then buy.
For example. Market goes up 10 pips, sell the market with the 1st
position
lot size. If the market goes back down 10 pips, close it with profit and
buy the market where you closed the sell. We will now give the buy a chance.
On the other hand, if the market goes up after
you sell the market,
then continue to sell the market according to the martingale string.
Every time
when the market retraces N pips interval, closes the position with profit and
replaces it with a pending order of the same lot size at the same price where
it was. Also every time when the market retrace the EA begins to buy according to the martingale
string.
As soon as
we have profit from any of the closed positions, the EA checks for loosing
orders and close as many as it can, starting with the furthest.
相似订单
// Define the properties input int ShortPeriod = 12; input int LongPeriod = 26; input double LotSize = 0.1; // OnTick function is called every time there is a price update void OnTick() { double shortMA = iMA(NULL, 0, ShortPeriod, 0, MODE_SMA, PRICE_CLOSE, 0); double longMA = iMA(NULL, 0, LongPeriod, 0, MODE_SMA, PRICE_CLOSE, 0); double prevShortMA = iMA(NULL, 0, ShortPeriod, 0, MODE_SMA, PRICE_CLOSE, 1);
Necesito un bot decente para prueba de fondeo y también cuenta personal, scalp, no grid, no martingale, no practicas prohibidas, algo objetivo, confiable y rentable... 5 Min mínimos de duración por operación, algo ya hecho y bactesteado en cuenta real y de fondeo. Necesito algo agresivo, constante pero que no exponga el capital... prefiero una estrategia de smc
Hi, The task involves adding functions to an existing EA and correcting an error. The developer must have a thorough understanding of the following: Trailing Take Profit function Calculating a decreasing distance between orders Ability to code a function for Global Profit decrement/increment size in percentage Ability to correct error 10015 Thank you in advance
Looking for experienced programmer to create a trend line breakout and trend line bounce indicator that send alert with arrow on screen without open trades multiple currency pairs time frame M15 H1 H4 D1 W1 MN
Hello programmers, I need a coding assistance to do the following job. Currently the EA opens two different trades one has a comment "Originial" and another has comment "Series" The job is if the Original trade is negative by x pips, open a hedge trade(Hedge1#-OrderTicket of the soruce trade) along with one buystop and a sell stop order and the comment of the trade will be "Recovery#1-+OrderTicket() of the original
//+------------------------------------------------------------------+ //| SimpleEA.mq4 | //| Generated by MetaEditor | //| https://www.mql5.com/en/docs  ; | //+------------------------------------------------------------------+ #property strict // Input parameters input double LotSize = 0.1; // Lot size input int MovingAveragePeriod = 50; // MA
I have a EA and A Indicator I want to upgrade with some new features I want to add to the Indicator And The EA Also there is a memory error in the system that is showing up in the journal after the ea is ran on multiple charts I will need to get this fixed as well Indicator is 528 lines of code EA is 703 lines of code Dashboard I want to add is 1974 lines of code Indicator Changes I want to change the indicator The
An ea with 4 moving average, and two time frame confluence. Option to add risk to reward and percentage of balance to trade. Message me remaining for the more info
Hi All, I will try to be as precise as possible. We can discuss if you have any questions. I need an indicator to be developed for MT5 for detecting Engulfing Failed Zones. Requirement (in H4/ H1/ M30 Time frames only): Identify Engulfing Buy/ Sell Candle. Identify when the Engulfing Buy is failed, or Engulfing sell is failed. Draw a zone for that area of Engulfing Buy/Sell Fail. Invalidate the zone or delete the
Hi. I want to fix my EA. The concept of lowestBid- There aree 3 levels of price. Price1 at the top, Price 2 in the middle and Price3 at the bottom. When the EA starts it start at Price1. And lowestBid is set to Price1. When the price hits Price 2, lowestBid=Price2. When price hits Price3, lowestBid=Price3. When Price come back up to level2, lowestBid=Price2 ....so on and so forth. lowestBid will keep changing with