The Captains Chest - Naked Trading & Other Stuff

The forum for Captain Jack and CJ related thingies.
Post Reply
Piter80
Trader
Posts: 342
Joined: Fri Jun 27, 2014 5:12 am
Location: PL

The Captains Chest - Naked Trading & Other Stuff

Post by Piter80 »

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

Post by dudest »

mosek » Thu Feb 05, 2015 12:45 pm wrote:
dudest » 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

Code: 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
Script goes into your MQL4\scripts folder

Enjoy :)
Hi Dudest
Great tool, but can you add a Tp/Sl functin ?
Hi Mosek,

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

Post by mosek »

Ok thanks for the reply
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

The Captains Chest - Naked Trading & Other Stuff

Post by milanese »

dudest » 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
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 APTM
---> 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 :xm:

Cheers :)

Tommaso
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
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

Post by go4pips »

Good Morning to All, thank you for your help :)
E.
mosek
Posts: 7
Joined: Mon Apr 28, 2014 12:53 pm

The Captains Chest - Naked Trading & Other Stuff

Post by mosek »

milanese » Thu Feb 05, 2015 9:55 am wrote:
dudest » 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
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 APTM
---> 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 :xm:

Cheers :)

Tommaso
Yes, this script with sl / tp makes sense for me and I would be grateful for adding this feature.

Thank you
dudest
Trader
Posts: 1847
Joined: Tue May 08, 2012 2:37 pm

The Captains Chest - Naked Trading & Other Stuff

Post by dudest »

Piter80 » Thu Feb 05, 2015 12:45 pm wrote:I can't right now.I will when I back home
Kul, thanks Piter
tienbanker
Trader
Posts: 65
Joined: Sat Jul 27, 2013 2:21 am

The Captains Chest - Naked Trading & Other Stuff

Post by tienbanker »

clearly to follow.
You do not have the required permissions to view the files attached to this post.
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

The Captains Chest - Naked Trading & Other Stuff

Post by milanese »

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
Here you go with your script:

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....
Place_PendingDudestwTPSL.mq4
Cheers :)

Tommaso
You do not have the required permissions to view the files attached to this post.
Global Prime is the official SHF broker :yahoo:
Searching for Servers and Workstations with individual configuration?
Just PM
:smile: Click here to go to the BoardKnowledgeBase
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

Post by Zaleske »

dudest » Thu Feb 05, 2015 9:35 am wrote:
Pending buys hit for AUDJPY



.
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.
Post Reply

Return to “Captain Jack's forum”