Thursday, September 23, 2021

Trailing stops by hedge Project Details


Bids
0
Avg Bid (USD)
$ 0
Budget (USD)
$ 20 - $ 50
CLOSED

Project Description:

Load Acc / summary / net trade

Load tickets numbers

Load all opened positions

Load total float (+_ )  

EA parameters:

0 = manage all positions = net trade

1 = manage only one ticket

 Trailing stops = X pips

Phase (0) // manage all opened positions:

A) Conditions: Profit-Based

// Actions occur if maximum profit (in point) is reached

TakeProfit= X; // TakeProfit is set X pips from breakeven price

where break even = (total open prices / their numbers)

Trailing Stops Sequence = 15, 25, 35,45,55,65 -----, X pips ---// or custom

if buy then Take profit = (TP price - breakeven price)

if sell then Take profit = (breakeven price - TP price)

End if            

//Wait until all positions get profit X pips = Net profit (+)

If buy reach TP then go execute sell stop @ TP price

If sell reach TP then go execute buy stop @ TP price

End if

B)Conditions: Loss-Based

Stoploss= X; // Stoploss is set X pips from breakeven price

where break even = (total open prices / their numbers)

Trailing Stops Sequence = 15, 25, 35,45,55,65 -----, X pips ---//  or custom

if buy then  Stoploss = (Stoploss price - breakeven price)

if sell then Stoploss = (breakeven price - Stoploss price )

End if

//Wait until all positions get Loss X pips = Net profit (-)

If buy reach SL then go execute sell stop @ SL price

If sell reach SL then go execute buy stop @ SL price

End if

Phases (1) manage individual ticket:

C) Conditions: Profit-Based

// Actions occur if maximum profit (in point) is reached

TakeProfit= X; // TakeProfit is set X pips from open price

Trailing Stops Sequence = 15, 25, 35,45,55,65 -----, X pips ---// or custom

if buy then Take profit = (TP price - open price)

if sell then Take profit = (open price -TP price)

End if            

//Wait until all ticket get profit X pips = profit (+)

If buy reach TP then go execute sell stop @ TP price

If sell reach TP then go execute buy stop @ TP price

End if

D)Conditions: Loss-Based

Stoploss= X; // Stoploss is set X pips from open price

Trailing Stops Sequence = 15, 25, 35,45,55,65 -----, X pips ---//  or custom

if buy then  Stoploss = (Stoploss price - open price)

if sell then Stoploss = (open price - Stoploss price )

End if

//Wait until ticket get Loss X pips = profit (-)

If buy reach SL then go execute sell stop @ SL price

If sell reach SL then go execute buy stop @ SL price

End if

Skills Required:

Expert Advisers/Auto Trades
img
Posted by :
(6 Reviews)
Posted On: 01-10-2012


Public Clarification Board
0 message(s)
You must bid on this project or be the project owner to post message(s).
All Bids
There are no bids yet.