stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

The Captains Chest - Naked Trading & Other Stuff
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=1572
Page 560 of 1600
Author:  Piter80 [ Thu Feb 05, 2015 9:45 am ]
Post subject:  The Captains Chest - Naked Trading & Other Stuff

I can't right now.I will when I back home
Author:  dudest [ Thu Feb 05, 2015 9:49 am ]
Post subject:  The Captains Chest - Naked Trading & Other Stuff

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
Author:  mosek [ Thu Feb 05, 2015 9:52 am ]
Post subject:  The Captains Chest - Naked Trading & Other Stuff

Ok thanks for the reply
Author:  milanese [ Thu Feb 05, 2015 9:55 am ]
Post subject:  The Captains Chest - Naked Trading & Other Stuff

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
Author:  go4pips [ Thu Feb 05, 2015 9:59 am ]
Post subject:  The Captains Chest - Naked Trading & Other Stuff

Good Morning to All, thank you for your help :)
E.
Author:  mosek [ Thu Feb 05, 2015 10:04 am ]
Post subject:  The Captains Chest - Naked Trading & Other Stuff

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
Author:  dudest [ Thu Feb 05, 2015 10:09 am ]
Post subject:  The Captains Chest - Naked Trading & Other Stuff

Piter80 » Thu Feb 05, 2015 12:45 pm wrote:I can't right now.I will when I back home
Kul, thanks Piter
Author:  tienbanker [ Thu Feb 05, 2015 10:50 am ]
Post subject:  The Captains Chest - Naked Trading & Other Stuff

clearly to follow.
Author:  milanese [ Thu Feb 05, 2015 11:10 am ]
Post subject:  The Captains Chest - Naked Trading & Other Stuff

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
Author:  Zaleske [ Thu Feb 05, 2015 11:52 am ]
Post subject:  The Captains Chest - Naked Trading & Other Stuff

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.
All times are UTC Page 560 of 1600