Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, Grant, Neb), 908 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Different stoploss depending on the day of the week #453818
08/15/15 12:24
08/15/15 12:24
Joined: Mar 2015
Posts: 335
Rogaland
N
nanotir Offline OP
Senior Member
nanotir  Offline OP
Senior Member
N

Joined: Mar 2015
Posts: 335
Rogaland
Hi

I am trying to change the stoploss depending on the day of the week. The purpose is to reduce the risk in the days that there are news from the FED for example.
Anyone knows how to implement it?

Re: Different stoploss depending on the day of the week [Re: nanotir] #453821
08/15/15 23:48
08/15/15 23:48
Joined: Nov 2013
Posts: 123
Mithrandir77 Offline
Member
Mithrandir77  Offline
Member

Joined: Nov 2013
Posts: 123
I think you can do that inside a TMF or a trade enumeration loop .
. An example with a trade enumeration loop:

Code:
if (dow() == MONDAY)//or whatever day the FED releases news
    for(open_trades) 
    {
        if (!TradeIsVirtual and !TradeIsPool)//unless you want to modify these trades...
            TradeStopLimit = TradeStopLimit / 2;//or whatever you want
    }


Last edited by Mithrandir77; 08/16/15 20:35. Reason: spelling error (TradeIsVirutal)
Re: Different stoploss depending on the day of the week [Re: Mithrandir77] #455132
10/10/15 21:26
10/10/15 21:26
Joined: Mar 2015
Posts: 335
Rogaland
N
nanotir Offline OP
Senior Member
nanotir  Offline OP
Senior Member
N

Joined: Mar 2015
Posts: 335
Rogaland
thanks


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1