Para utilizar el chat, inicie sesión.

Orders per symbol.

Rihan
RSTrading
Sep 11 2013 at 12:49
posts 385
Hi there,

I an looking for a weird EA. One that can limit orders per symbol. I have searched all over, don't seem to find one anywhere.

Please help.

deysmacro
Sep 11 2013 at 14:02
posts 275
it is not a weird ea. just a logic that needs to be implemented.

to limit orders, the ea just needs to have checks for any open orders and have it not to open more than required. 😄

for per symbol is easy, you just need to add symbol checks only to the logic. 😎

the above logic also can be implemented for buy limit or sell limit too. 😎

Past experience usually helps present self
CrazyTraderfx (CrazyTrader)
Sep 11 2013 at 14:03
posts 1718
Hi

If you know how to code, you simply need to count numbers of current trades (opened one) and then create a parameter that will limit to the specific number you mention.

So the EA can't open any more orders untill one of them has been closed.

Cheers

xgavinc
Sep 11 2013 at 14:15
posts 235
Can do something like this: (It's a rough example, not a complete EA!!!)

extern string SymbolA = 'EURUSD';
extern int OrderCountLimit = 10;

int AllOrderCount;


void OrderCount()
{

AllOrderCount = 0;

   for(int i=0;i<OrdersTotal(); i++ )
   {
      if(OrderSelect(i, SELECT_BY_POS)==true && OrderSymbol() == SymbolA) //or Symbol() for current chart.
      {
         
            AllOrderCount++;
   
      }
   }
}

// Other code that eventually calls CheckOrderCount()

void CheckOrderCount()
{
if (AllOrderCount < OrderCountLimit)
   {
OpenOrder();
   }
}

void OpenOrder()
{

//Code to open / create order

}

For every loss there should be at least an equal and opposite profit.
CrazyTraderfx (CrazyTrader)
Sep 11 2013 at 14:20
posts 1718
Yes... It seems you know how to count : )

If not working let me know...

deysmacro
Sep 11 2013 at 15:34
posts 275
You know, I always have this conflict either to use -- or ++

e.g. int i=0;i<OrdersTotal(); i++

during my coding time. LOL. 😂

Past experience usually helps present self
Rihan
RSTrading
Sep 11 2013 at 20:11
posts 385
Thanks for your replies. I appreciate that you took the time to respond. I have no coding experience.(making this very hard) I googled this, there are quite a few codes, but no EA. All the people that had this in mind seemingly could code, made the EAs and never shared anything on the internet, I can't even get email addresses to get hold of anybody that coded such thing.

I read online (amongst the codes for this on the internet) that it would have to check the account history if there has been a trade for this symbol before placing any more. I went for asking whether there is an EA that could do this. (figured it will be much easier than getting a coder to check the EA) Will another EA be easier, or modifying the existing EA to do this?

Regards
Ryan

Rihan
RSTrading
Sep 11 2013 at 20:11
posts 385
Thanks xgavinc, not being a coder makes this all seem Greek to me..

CrazyTraderfx (CrazyTrader)
Sep 11 2013 at 20:18
posts 1718
I thought you knew how to code... in fact you just copy paste what you found.

I don't know what you really need so I can't give a code.

What do you need? Implement this logic into another EA?

deysmacro
Sep 11 2013 at 23:11
posts 275
@CrazyTrader

I knew @RSTrading cant code. That is why I replied like that for the first reply. 😎

---

Getting a free EA will not do any good here @RSTrading . I already knew that type of ea and of course it needs a little bit of coding to get what you want to work. 😝

Or just get @CrazyTrader or @xgavinc to code for you for a fee. 😄

Past experience usually helps present self
Por favor, inicie sesión para comentar .