TENGO EL CODIGO FUENTE DE UN IDICADOR QUE QUIERO FUNCIONE COMO EA Y SE COMPRTA arroja unas flechas y quiero que cuando da flecha de compra va a comprar y cuando de flecha de venta va a vender, usaremos trailing stop para asegurar las ganancias stoploss pips y que lo pueda modificar take profit pips y poderlo modificar a mi gusto pueder usar opcion activar martingala o no martingala y que yo la pueda modificar a menor o mayor riesgo de lotaje a mi gusto para eso te dejo parte de los valores de las funciones para la EA en este código descrito abajo usaremos estos valores para poder modificar a mi gusto en cualquier gráfico y que basado en cómo piensa el indicador quiero sea echa la EA. estos valores que te dejo abajo es de la gestion del capital como ejemplo lo que puedas agregar y adaptar al codigo. en simples palabras me inmteresa que la EA sea en base a como piensa el indicador flecha de compra compra y flecha de venta vende que tenga covertura martingala que pueda modificar esto AQUI: eextern bool UseTimeLimit=false; extern int StartHour=8; // Start trades after time extern int StopHour=15; // Stop trading after time bool YesStop; extern bool UseOnlineIndicator=true; extern bool UseFibonacci=true; extern bool AutoCalculateDailyRange=true; extern int MMType=1; // Type MM yang akan digunakan Saat EA berjalan extern bool AutoFixError=true; extern bool SmartTrade=true; extern bool UseClose=false; // Menggunakan Pilihan tutup Secara Paksa extern bool UseAdd=true; // Options Martinggale extern double LotExponent=1.667; // Star Open Petama 0.01, Seterusnya: 0.02, 0.03, 0.04 ... extern double slip=3; // maksimal Slip Page extern double Lots=0.01; // Start Lot dari 0.01.0.02,0.04 extern double LotsDigits=2; // 2=0.01 1=0.1 0=1 LOT extern double TakeProfit=50; // Batas Keuntungan extern double TakeProfitInMoney=30; extern double Stoploss=500; // Batas Kerugian extern double StoplossINPercent=1; extern double TrailStart= 210; extern double TrailStop = 210; extern double PipStep=120; // Pips Berikutnya Untuk Open Posisi Baru extern int MaxTrades=10; extern bool UseEquityStop=false; extern double TotalEquityRisk=20; //loss as a percentage of equity extern bool UseTrailingStop= false; extern bool UseTimeOut=false; extern double MaxTradeOpenHours=48; extern string OptionsNewsFilter="===USE News Filter=YES/NO==="; extern bool UseNewsFilter=true;//|---------------use news filter extern int StartNewsFilter=0;//|------------------start news filter extern int EndNewsFilter=24;//|-------------------end news filter extern int MinsUntilNews=30;//|-------------------minutes until news extern int MinsAfterNews=30;//|-------------------minutes after news extern string News1="3=High; 2=Medium; 1=Low";//|-news impact information extern int NewsImpact=3;//|-----------------------news impact extern bool CloseProfitableTrades=false;//|--------close profitable trades before the news extern bool CloseAllTrades=false;//|---------------close all the trades before the news extern bool ShowAlerts=false;//|-------------------show alerts int MagicNumber=1; double PriceTarget,StartEquity,BuyTarget,SellTarget; double AveragePrice,SellLimit,BuyLimit; double LastBuyPrice,LastSellPrice,ClosePrice,Spread; int flag; string EAName="VISIONFXBOT"; datetime timeprev=0,expiration; int NumOfTrades=0; double iLots; int cnt=0,total; double Stopper=0; bool TradeNow = false, LongTrade=false, ShortTrade=false; int ticket; bool NewOrdersPlaced=false; Y TAMBIEN TE DEJO ESTE CODIGO PARA QUE ME PUEDA APARECER EN EL GRAFICO INFORMACION PANEL DE GESTION DE LA CUENTA POR FAVOR Comment("VISIONFXBOT MONITOREANDO EL MERCADO" + "\n" + "\n" "https://siiapi.jimdo.com" + "\n" "Empresa de la cuenta-------- :",AccountCompany() + "\n" "Brokers Time :" + TimeToStr(TimeCurrent(), TIME_DATE|TIME_SECONDS) + "\n" "Tipo de cuenta-----------------:",AccountServer() + "\n" "Nombre :" + AccountName() + "\n" "Numero de cuenta :" + AccountNumber() + "\n" "Dinero de cuenta :" + AccountCurrency() + "\n" + "\n" "STOP MARGEN LIBRE BROKER % :" + AccountStopoutLevel() + "\n" + "\n" "Orden abierta vfx-icm. :" + CountTrades_Hilo() + "\n" + "\n" "Orden abierta vfx-scalpin. :" + CountTrades_15() + "\n" + "\n" "Orden abierta vfx-montainner. :" + CountTrades_16() + "\n" + "\n" "Orden Totales :" + OrdersTotal() + "\n" "Saldo de la cuenta :" + DoubleToStr(AccountBalance(), 2) + "\n" "Equidad de la cuenta :" + DoubleToStr(AccountEquity(), 2) + "\n" + "\n""MODERADOR-DE-MERCADOS");