Reply

Multiple simultaneous Long entries

1 replies

kagein

Subscriber, bbp_participant, community, 1 replies.

Visit profile

6 years ago #116567

Im trying to create an EA that buys a product on the same day every week. At the moment the code i use only one entry occurs. How would i change it so it will buy every day/week i.e. multiple entires in the same product.

 

thanks

 

pseudo code below.

 

===================================================================

==== Trading Rules
====================================================================
==== Rule: Rule 1 ====
if (Bar Just Opened
   and (Bar Day of Week = 1))
{
    // Action #1
    Open Long order at Market;
    
       StopLoss = ConvertToPips(“Current”, Close()[1]) pips;
 
}
 
 

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

6 years ago #142352

Hello,

 

find the example attached. The EA trades each Monday 1 trade per day

0

Viewing 1 replies (of 1 total)