Position_Opened_Alert

Strategies are published here.

Moderator: admin

Position_Opened_Alert

Postby Apprentice » Wed Nov 20, 2019 5:42 am

Based on request.
viewtopic.php?f=27&t=69140

A simple alert that sends an email every time a position is opened with the symbol, lot size, open, limit, stop.

Position_Opened_Alert.lua
(29.57 KiB) Downloaded 12 times


There are some catches. FXTS2 order workflow create a trade without stop loss first. So, when the strategy detects a new trade there will be no stop and limit. They will be added one by one as a dedicated event. So, on creating single trade with stop and limit there will be several message. To avoid sending several emails I've added a 3 second delay. All these messages will be send in batches. This is the only working solution I came up with.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 23183
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 9 guests