Forum

Doing something in the middle of two simultaneous trades?

Hi! I have an EA that uses a strategy that involves at one point two trades going off at the same time. At first it was just a place holder, then it turned out to be rather effective! I want to be able to set two different values for each trade using the same function . I am using a simple

Using OrderSelect, OrderSend and OrderProfit as a basis to execute a new trade?

Hi! I am using the following loop to execute trades . The first two if statements fire, the second two do not. I was wondering if anyone had suggestions on how to get this working for ( int i= 1 ;i>= 0 ;i--) { if (ma - ma2 <= VarianceSell) { res= OrderSend ( Symbol (),OP_SELL, 0.01

Smash head on desk frustrated 24 variations down, no solution to programs behavior!!

Can someone please take a look at my program and tell me what I am doing wrong? (It's probably a lot!) I am very lost, my head really hurts, I have been working on this for two weeks straight! Help please!! I have two problems I have repeatedly failed to solve: + When the trade signal is present

Newbie Programming Question, Is it possible to make a condition only occur once until it appears again?

Hi! So I am using what's below for buying or selling. It's a little messy because I am still experimenting, but I was wondering if anyone knew a way to program it so every time ma - ma2 is greater then 0 this condition occurs, then resets and doesn't check again until ma - ma2 is less then 0? If I

Getting an EA to take actions from the difference of two SMA's?

Hi! I am a very new programmer and I am having trouble getting my EA to take any actions (Buy, Sell, or Close a trade). Can I get some advice here? The code compiles, it just won't take action when it is supposed to. I want it to Buy when the requirements for VarianceBuy are met, sell when the