Writing EAs for free on interesting strategies - page 4

 
Aleksander:

Jealousy in silence, gentlemen and ladies, you have got a free idea of aprofitable trading system

- when the market opens on Monday - adjust the necessary windows of currency pairs to each other - ff M15 and watch how and which pairs move and how manypips you can gain

and then you can start sneering...

You've written that the maximum time of position holding is 5-7 minutes and the profit target is small. Then why M15? The timeframe must be no longer than M5, otherwise the movement will be difficult to detect within a 15-minute candle.

It is not surprising that your idea is sceptically accepted. You're saying that you use it not all the time, but sometimes. So there is no full-fledged statistics. So it is difficult to judge yet how "countable" this system is. A lot of ideas crumble as soon as you formalize and test them :)

 
mqlskeptik:
Hello, i have a good experience in programming, i've tried a lot of different strategies, and i want to make something new and interesting. Can you suggest an interesting strategy on indicators? Thank you.

Please help. I want to write an EA based on stochastic. The only thing it puts a lot of extra orders. It has to check on every tick to see if there is an open order at that price, if there is, then do nothing, if there is, then open an order.

//--------------------------------------------------------------------

// callstohastic.mq4

// Slightly reworked

//--------------------------------------------------------------------

int start() // Special function start

{

double M_0, M_1; // MAIN value at 0 and 1 bar

S_0, S_1; // SIGNAL value at 0 and 1 bar

//--------------------------------------------------------------------

// Call the function for the technical display.

M_0=iStochastic(NULL,0,5,3,3,MODE_SMA,0,MODE_MAIN, 0);// 0 bar

M_1=iStochastic(NULL,0,5,3,3,MODE_SMA,0,MODE_MAIN, 1);// 1 bar

S_0=iStochastic(NULL,0,5,3,3,MODE_SMA,0,MODE_SIGNAL,0);// 0 bar

S_1=iStochastic(NULL,0,5,3,3,MODE_SMA,0,MODE_SIGNAL,1);// 1 bar

//--------------------------------------------------------------------


// Situation analysis

if(M_1 < S_1 && M_0>=S_0) // Green crosses red from bottom

OrderSend(Symbol(),OP_BUY,0.02,Ask,3,Bid-1500*Point,Bid+10*Point);//buy

if(M_1 > S_1 && M_0<=S_0) // green crosses a red candle

OrderSend(Symbol(),OP_SELL,0.01,Bid,3,Bid+1500*Point,Bid-10*Point);//sell


if(M_1 > S_1 && M_0 > S_0) // green is higher than red

OrderSend(Symbol(),OP_BUY,0.01,Ask,3,Bid-1500*Point,Bid+10*Point);//buy // Alert("Continue Buy"); // Message

if(M_1 < S_1 && M_0 < S_0) // Green is below red

OrderSend(Symbol(),OP_SELL,0.02,Bid,3,Bid+1500*Point,Bid-10*Point);//sell// Alert("Continue holding sell."); // Message

//--------------------------------------------------------------------

return; //Start()

}

//--------------------------------------------------------------------

 
maxsi-kmi:

Please help. I want to write an EA based on stochastic. The only thing it puts a lot of extra orders. It has to check on every tick to see if there is an open order at that price, if there is, then do nothing, if there is, then open an order.

//--------------------------------------------------------------------

// callstohastic.mq4

// Slightly reworked

//--------------------------------------------------------------------

int start() // Special function start

{

double M_0, M_1; // MAIN value at 0 and 1 bar

S_0, S_1; // SIGNAL value at 0 and 1 bar

//--------------------------------------------------------------------

// Access to function of the technical display

M_0=iStochastic(NULL,0,5,3,3,MODE_SMA,0,MODE_MAIN, 0);// 0 bar

M_1=iStochastic(NULL,0,5,3,3,MODE_SMA,0,MODE_MAIN, 1);// 1 bar

S_0=iStochastic(NULL,0,5,3,3,MODE_SMA,0,MODE_SIGNAL,0);// 0 bar

S_1=iStochastic(NULL,0,5,3,3,MODE_SMA,0,MODE_SIGNAL,1);// 1 bar

//--------------------------------------------------------------------


// Situation analysis

if(M_1 < S_1 && M_0>=S_0) // Green crosses red from bottom

OrderSend(Symbol(),OP_BUY,0.02,Ask,3,Bid-1500*Point,Bid+10*Point);//buy

if(M_1 > S_1 && M_0<=S_0) // green crosses a red candle

OrderSend(Symbol(),OP_SELL,0.01,Bid,3,Bid+1500*Point,Bid-10*Point);//sell


if(M_1 > S_1 && M_0 > S_0) // green is higher than red

OrderSend(Symbol(),OP_BUY,0.01,Ask,3,Bid-1500*Point,Bid+10*Point);//buy // Alert("Continue Buy"); // Message

if(M_1 < S_1 && M_0 < S_0) // Green is below red

OrderSend(Symbol(),OP_SELL,0.02,Bid,3,Bid+1500*Point,Bid-10*Point);//sell// Alert("Continue holding sell."); // Message

//--------------------------------------------------------------------

return; //Start()

}

//--------------------------------------------------------------------


Read the textbook section first - the answers are there.
 
evillive:
I can't, I could, I did, although I will try of course, that's why I asked if it was worth it or not. And the standard ones can exactly dozens in the subwindow, I've already checked, the same RSI, each with its own parameters, but it's not the same, there is one axis, and in our case you need another offset.
Exactly, if you do it programmatically, then say so.
 
Meat:

You've written that the maximum time of position holding is 5-7 minutes and the profit target is small. Then why M15? In those conditions the timeframe should not be more than M5, otherwise the movement will be difficult to detect within a 15 min candle.

Of course, 5 minutes is relative... some trades will be bigger...

The working chart of the selected instrument will be a minute one, but for the analysis of pair selection - 15m is better - in my opinion... it excludes small movements

then on the working chart there are a couple of indicators (I'll let you know later) - they confirm the selected direction of the pair as "locomotives".

 
FAQ:
Screenshot at least from a five, or other terminal. With standard four's limitations on the number of buffers, you can only make a couple of similar graphs in one window (unless of course you draw them with graphobjects.)
It's really easy :)
 
TheXpert:
It's easy :)

24 buffer arrays in one indicator on MT4 ? I must be out of date...
 
No, just a scalable solution, simple as that. I've already been asked for this inductor. Guess I'll have to write one :))
 
TheXpert:
No, just a scalable solution, simple as that. I've already been asked for this inductor. Guess I'll have to write one :))

In different subwindows - yes, I agree. maybe then it's better to do it with graphics ? or do it differently. for as for me, in this particular representation it's practically impossible to make out anything.
 
You could also use graphics. But imho it will be slower and use more memory.