The Captains Chest - Naked Trading & Other Stuff
-
Piter80
- Trader
- Posts: 342
- Joined: Fri Jun 27, 2014 5:12 am
- Location: PL
The Captains Chest - Naked Trading & Other Stuff
I can't right now.I will when I back home
-
dudest
- Trader
- Posts: 1847
- Joined: Tue May 08, 2012 2:37 pm
The Captains Chest - Naked Trading & Other Stuff
Hi Mosek,mosek » Thu Feb 05, 2015 12:45 pm wrote:Hi Dudestdudest » Tue Feb 03, 2015 10:16 pm wrote:Hi peeps,
Here's a neat script that Tommaso (milanese) coded up for me the other day [ thanks bro! :hi: ]
Got tired of placing MANY pendings manually. So the script does the donkey work
The inputs are very straight-forward
Script goes into your MQL4\scripts folderCode: Select all
Lot = 0.50; # pending order lot size Direction=1; # 1 = buy, 2 = sell First_PendingOrder_Price=0; # price to set the first pending order at NumberOfPendingsToSet=5; # number of pending orders to create DistanceOrdersPips=20; # distance between pending orders MagicNumber=0; # magic number of pending orders TradeComment=""; # trade order comment for the pending orders ShowAlerts = false; # set true to get an Alert on each successful creation
Enjoy
Great tool, but can you add a Tp/Sl functin ?
I *very rarely* use TPs, SLs
But @milanese should be able to mod it for you
Cheers
-
mosek
- Posts: 7
- Joined: Mon Apr 28, 2014 12:53 pm
The Captains Chest - Naked Trading & Other Stuff
Ok thanks for the reply
- milanese
- TechAdmin
- Posts: 3293
- Joined: Wed Jan 09, 2013 9:02 am
- Location: btr rdx, r8 +
The Captains Chest - Naked Trading & Other Stuff
It is nromally risky to use with oending orders TP/SL as they could be easy filled far from the price(with news spiking ecc) you wanted them to fil.l and than a SL/TP calculated based on the pending price, would cause that the order will be closed by SL/TP hit directly after filling, better would be to use a trademanager like APTMdudest » Thu Feb 05, 2015 9:49 am wrote:
Hi Mosek,
I *very rarely* use TPs, SLs
But @milanese should be able to mod it for you
Cheers
---> http://www.stevehopwoodforex.com/phpBB3 ... =21&t=3482 , that would set after filling a SL/ and TP...
But if you insist that a script with SL/TP would make sense for you I will update the script later
Cheers
Tommaso
Global Prime is the official SHF broker 
Searching for Servers and Workstations with individual configuration?
Just PM
Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
Searching for Servers and Workstations with individual configuration?
Just PM
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
-
go4pips
- Trader
- Posts: 143
- Joined: Wed Mar 27, 2013 9:20 am
The Captains Chest - Naked Trading & Other Stuff
Good Morning to All, thank you for your help
E.
E.
-
mosek
- Posts: 7
- Joined: Mon Apr 28, 2014 12:53 pm
The Captains Chest - Naked Trading & Other Stuff
Yes, this script with sl / tp makes sense for me and I would be grateful for adding this feature.milanese » Thu Feb 05, 2015 9:55 am wrote:It is nromally risky to use with oending orders TP/SL as they could be easy filled far from the price(with news spiking ecc) you wanted them to fil.l and than a SL/TP calculated based on the pending price, would cause that the order will be closed by SL/TP hit directly after filling, better would be to use a trademanager like APTMdudest » Thu Feb 05, 2015 9:49 am wrote:
Hi Mosek,
I *very rarely* use TPs, SLs
But @milanese should be able to mod it for you
Cheers
---> http://www.stevehopwoodforex.com/phpBB3 ... =21&t=3482 , that would set after filling a SL/ and TP...
But if you insist that a script with SL/TP would make sense for you I will update the script later![]()
Cheers
Tommaso
Thank you
-
dudest
- Trader
- Posts: 1847
- Joined: Tue May 08, 2012 2:37 pm
The Captains Chest - Naked Trading & Other Stuff
Kul, thanks PiterPiter80 » Thu Feb 05, 2015 12:45 pm wrote:I can't right now.I will when I back home
-
tienbanker
- Trader
- Posts: 65
- Joined: Sat Jul 27, 2013 2:21 am
The Captains Chest - Naked Trading & Other Stuff
clearly to follow.
You do not have the required permissions to view the files attached to this post.
- milanese
- TechAdmin
- Posts: 3293
- Joined: Wed Jan 09, 2013 9:02 am
- Location: btr rdx, r8 +
The Captains Chest - Naked Trading & Other Stuff
Here you go with your script:mosek » Thu Feb 05, 2015 10:04 am wrote:
Yes, this script with sl / tp makes sense for me and I would be grateful for adding this feature.
Thank you
New inputs are:
Code: Select all
extern string gen1="----SL/TP inputs----";
extern bool useSLandTP=true;
extern double StopLoss=50;
extern double TakeProfit=75;useSLandTP set this to true for using the new SL/TP function enter your wished SL and TP pips and done....
Cheers Tommaso
You do not have the required permissions to view the files attached to this post.
Global Prime is the official SHF broker 
Searching for Servers and Workstations with individual configuration?
Just PM
Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
Searching for Servers and Workstations with individual configuration?
Just PM
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
-
Zaleske
- Trader
- Posts: 118
- Joined: Thu Apr 24, 2014 1:08 pm
- Location: France
The Captains Chest - Naked Trading & Other Stuff
Yes, I was early placing orders yesterday trying to pick bottom but kept everything trusting the pattern so I have a nice stack going on now.