Trabalho concluído
Tempo de execução 3 horas
Comentário do cliente
Super job very professional
Comentário do desenvolvedor
Thanks!!!!!
Termos de Referência
Hello, I need the size of my lots increases when my second orders opens and my third. and when I close all my orders manually it starts again from the beginning. like a martingale. example:I enter the value 0.01 lots for the first order. 0.02 for the second order and 0.05 for the third order. When my expert is active he opens an order at (example) 1.3542 and what I would like is that when a stoploss or takeprofit is hit he opens the second order at 0.02 lots and when my takeprofit or stoploss is hit he opens a third order at 0.05 lots. and if I close everything manually, everything starts from the beginning 0.01 lots then 0.02 lots then 0.05 lots ect.....
//+------------------------------------------------------------------+ //| test35.mq4 | //| xxx | //| http://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "xxx" #property link "http://www.mql5.com" #property version "1.00" #property strict extern double lots = 0.01; input int TakeProfit = 20; input int StopLoss = 10; extern int magic = 111112; extern double Level = 1.3441; extern double MaxDeviation = 9; // Max Deviation, points bool RunOnce=false; int last_order_check = false; datetime EaStartTime=TimeCurrent(); double takeprofit=TakeProfit; double stoploss =StopLoss; //+------------------------------------------------------------------+ //| Expert initialization function | //+------------------------------------------------------------------+ int OnInit() { RunOnce=false; MathSrand(GetTickCount()); if(Digits==5 || Digits==3) { takeprofit =TakeProfit*10; stoploss =StopLoss*10; } return(INIT_SUCCEEDED); } //+------------------------------------------------------------------+ //| Expert deinitialization function | //+------------------------------------------------------------------+ void OnTimer() { OnTick(); } void OnDeinit(const int reason) { //--- } //+------------------------------------------------------------------+ //| Expert tick function | //+------------------------------------------------------------------+ void OnTick() { if(IsLastOrderClose()) { OnInit(); Print("Ea Closed Manually "); EaStartTime=TimeCurrent(); } int ticet; int t=MathRand(); if(CountVsego()==0) { if(t>16384) { if(RunOnce || (Ask >=Level && Ask<=Level+(MaxDeviation*_Point) && Level !=0)) { ticet=OrderSend(Symbol(),OP_BUY,lots,Ask,3,Bid-stoploss*Point,Ask+takeprofit*Point,"1",magic,0,clrGreen); if(ticet>0) { RunOnce=true; } } } else if(t<16384) { if(RunOnce || (Bid <=Level && Bid >= Level-(MaxDeviation*_Point) && Level !=0)) { ticet=OrderSend(Symbol(),OP_SELL,lots,Bid,3,Ask+stoploss*Point,Bid-takeprofit*Point,"1",magic,0,clrRed); if(ticet>0) { RunOnce=true; } } } } } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ int CountSELL() { int count=0; int i; for(i=OrdersTotal()-1;i>=0;i--) { if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)) { if(OrderSymbol()==Symbol() && OrderMagicNumber()==magic && OrderType()==OP_SELL) count++; } } return(count); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ int CountBUY() { int count=0; int i; for(i=OrdersTotal()-1;i>=0;i--) { if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)) { if(OrderSymbol()==Symbol() && OrderMagicNumber()==magic && OrderType()==OP_BUY) count++; } } return(count); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ int CountVsego() { int Vsego; Vsego=CountBUY()+CountSELL(); return(Vsego); } //+------------------------------------------------------------------+ bool IsLastOrderClose() { bool signal = false; for(int i=OrdersHistoryTotal()-1;i>=0;i--) { bool select = OrderSelect(i,SELECT_BY_POS,MODE_HISTORY); if(select && OrderSymbol()==_Symbol && OrderMagicNumber()==magic) { if(OrderType()==OP_BUY && OrderCloseTime()>=EaStartTime) { if(OrderClosePrice()>OrderStopLoss() && OrderClosePrice()<OrderTakeProfit()) { signal = true; } break; } else if(OrderType()==OP_SELL && OrderCloseTime()>=EaStartTime) { if(OrderClosePrice()<OrderStopLoss() && OrderClosePrice()>OrderTakeProfit()) { signal = true; } break; } break; } } return(signal); }
Respondido
1
Classificação
Projetos
507
40%
Arbitragem
159
17%
/
74%
Expirado
99
20%
Carregado
2
Classificação
Projetos
3327
67%
Arbitragem
77
48%
/
14%
Expirado
342
10%
Livre
Publicou: 1 código
3
Classificação
Projetos
789
71%
Arbitragem
9
33%
/
33%
Expirado
22
3%
Livre
Publicou: 8 códigos
4
Classificação
Projetos
1462
63%
Arbitragem
21
57%
/
10%
Expirado
43
3%
Livre
5
Classificação
Projetos
339
49%
Arbitragem
21
5%
/
33%
Expirado
24
7%
Livre
6
Classificação
Projetos
253
30%
Arbitragem
0
Expirado
3
1%
Livre
Publicou: 2 códigos
7
Classificação
Projetos
628
72%
Arbitragem
14
43%
/
7%
Expirado
28
4%
Livre
Publicou: 9 códigos
8
Classificação
Projetos
844
73%
Arbitragem
15
53%
/
13%
Expirado
193
23%
Livre
9
Classificação
Projetos
2
0%
Arbitragem
0
Expirado
1
50%
Livre
10
Classificação
Projetos
74
50%
Arbitragem
4
0%
/
50%
Expirado
19
26%
Livre
11
Classificação
Projetos
1061
50%
Arbitragem
39
28%
/
41%
Expirado
49
5%
Livre
Publicou: 1 artigo, 8 códigos
12
Classificação
Projetos
167
49%
Arbitragem
22
14%
/
55%
Expirado
22
13%
Livre
Pedidos semelhantes
Forex Expert Advisor/Robot mt4
30 - 50 USD
Greetings, I'm seeking a price quote for the following EA description. 1) Short positions are opened after trades that have closed below the open of the trade. 2) Long positions are opened after trades that have closed above the open of the trade. 3) The base lot size plus the spread is applied for every trade that opens after the take profit has been reached. 4) Double the lot size of the previous trade plus
Ninjatrader indicator
30+ USD
I have an issue with my ninja script and i would like you to help me straighten things I wanted to create an indicator and i have the source code already but i am getting compiling errors on my NinjaTrader And i tried fixing the error it still same I sent 3 images here for you to understand the errors and i would like to ask if you can help me fix it so i can go ahead and compile my source code. Thanks
Nijatrader indicator
30+ USD
Good day, I would like to build an automated trading system for Ninjatrader using 2 MACD, a Supertrend, and a moving average indicator. I want the option to adjust the indicator settings, the ability to trade at three different times, and the option to receive alerts. I want to get an idea of what that will cost me. It will enter trades on all blue take one contract out at a fixed point, move the stop to break even
I have an indicator i need automated i use it manually and it plots arrows. Can you automate it for my Ninjatrader8? Do you need to see file? Expert Ninjatrader Developer can Bid for this project
Project Overview We are seeking an experienced MetaTrader 5 (MT5) / MQL5 developer to design and build a production-ready Expert Advisor intended for live trading with capital at risk . This is not a hobby, experimental, or retail-grade EA. We are only interested in developers with proven experience delivering robust, well-tested MT5 systems . Project Objective Design and implement a high-quality MT5 Expert Advisor
I want developer who know how to create bot which immediately transfer specific crypto coin deposit to one crypto address to another specific address in just a second,, if you know about this then only comment on this post
Ninjatrader strategy to MT4
30+ USD
Hey bro, can you help with NT8. On a vps, multiple algos and prop account but the strategies keep getting out of sync, going from true to false for no reason….. mid trade it pops errors.The algo codes are locked… other than that it’s open VPs, NT8 and strategy is open You will notice in the strategies xml that there are standard, then 100k and 50k versions…… Also I did version that are in strategy labeled "Apex"
Hello Developers, I need ready made MT5 HFT Gold Scalper. Must pass in backtesting lower DD work with minimum $50 if you have ready made scalper than send file for Demo test and than we Final the deal. Thanks
Traingview indicator
30+ USD
I would like to create an indicator for my strategy on trading view , my strategy involves a liquidity sweep , wick or candle body closure , this needs to happen inside a higher time frame pd array such as a fair value gap that’s atleast 5m + and there needs to be an inversion fair value gap for my entry , I want the fair value gaps on all time frames so I can see them all on the 1 minute chart but i want the fair
Tradingview Pine script
30+ USD
can you help me with making a simple tradingview/script that draws boxes labeling consolidation areas according to my specifications? IF anyone can help with this kindly do well to bid to this so we can discuss more about the project thanka
Informações sobre o projeto
Orçamento
40+ USD
Prazo
para 10 dias