Forum

Weird indicator vs Expert advisor

I use an indicator that looks and works fine on all past data but it has weird calculations when it comes to continually running. It starts drawing lines in random places. (I hope this is making sense) What I want to know is, when I program this into my EA, will the EA pull the data from this

EA "Trade Failure, Market Closed" help

I am programming an ea that places a trade once a day after the new day candle opens. But sometimes I get the warning "Trade Failure, Market Closed ". How do i re-send the trade if it doesn't open

I want to adjust this EA...

I have attached an EA and I thought it would manage my personal trades that I make, but after testing it, it doesn't do anything to my trades. Can someone help me and tell me how/or adjust it so it will manage all the trades, including my own

I'm trying to subtract my profits and add my losses, would this work?

I'm trying to write a code that will make a "Profit Target" which will subtract my profits in the past 24 hours and add my losses. But I think there is something wrong, can anyone help? int ProfitTarget = 1000 { for ( int q = 0 ; q< OrdersHistoryTotal (); q++) { OrderSelect (q, SELECT_BY_POS

I need some code help to place one trade per pair (But no more)

My code is set up to be placed on only one pair, but it will trade on multiple. For instance... *Not Entire Code* //----------------------------------------------------------------- { if(gbp>0) { if(gbp-usd<(TradePoints*(-1)+1)) { result=OrderSend(" GBPUSD

My EA doesn't update its information.

In my EA I have it pulling the Ask and bid from different pairs (other than the one it is attached to) but once it pulls the information it never updates it. How do I make it so my EA always has the current bid and ask prices from other pairs

How do I make sure that my EA has the up to date Market Info?

In my code, I have a lot of these... //--------------------------------------------------------------- double eurusdask = MarketInfo("EURUSD",MODE_ASK); //--------------------------------------------------------------- and a lot of these

Open multiple trades, One per pair. (I can't figure out how to code it)

Currently, I have been using this code... //------------------------------------------------------------------- int TotalOrdersCount() { int result=0; for(int i=0;i<OrdersTotal();i++) { OrderSelect(i,SELECT_BY_POS,MODE_TRADES); if (OrderMagicNumber()==MagicNumber) result++;

My Close For Profit/Loss EA isn't functioning properly.

This EA closes all the trades when everything either reaches a set positive or negative amount. However, when no trades are open it has a problem. "Zero Dived in EA" (see attachment) then the entire EA stops. I need help in what to do to my EA to make it so when no trades are open it will continue

Need help adjusting this EA

I found this EA and would love if someone could help me adjust it. The only setting I want to change is closing everything for a loss instead of a gain. Currently when all the trades that are open reach XX positive it closes everything. But I want to change it so when the trades are XX negative it