Script for Scaling in orders

landsat
Posts: 3
Joined: Mon May 20, 2013 9:16 am

Re: Script for Scaling in orders

Post by landsat »

Lifesys wrote:Interesting that this rates a special thread. An earlier version of EasyScalingScript was posted on CJ thread. Originally based on tigpips but entirely rewritten.
Renamed EasyScalingScript in that, as well as manual drag StartPrice settings, you can use sangmanes brilliant EasyOrder system.
Start EasyOrder Script, select type of order, it drops StartPrice (green), TP(blue) & SL(red) lines on the chart.
Start EasyScalingScript & it recognises & uses these values. This means you can change relative TP & SL for every order simply by drag a line.
Total Vol. size for a certain SL now accurately reflects % of Account if set, and log, linear & fixed scaling can be selected.

Please don't expect this to work on penny orders (0.01 vol) or where StartPrice is too close to Ask - your data source will have a minimum distance.
There is a NoTradeDebug mode, which shows values & lines but no actual trade, so you can find out what you are doing wrong.

based on the attached scipt is it possible to have 2 versions , 1 for buy ,1 for sell
and if a drag and drop the script on the graph it open a position directly athe current price , this is why i will use 2 scripts one for buy , one for sell ....

i hope to be clear enough , an old trader who just start to discover script and EA , just to make my life a bit easier

thank's for your patience

Landsat
theforexedge
Trader
Posts: 220
Joined: Thu Apr 26, 2012 10:31 pm
Location: Torquay

Reverse Limit Size

Post by theforexedge »

Has anyone tried this or got it to work?

Maybe I'm doing something wrong or have the wrong combination of variables, but i've tried everything and still can't get this working...

Any help appreciated..

Jason
User avatar
MurphyMan
Trader
Posts: 345
Joined: Tue Nov 15, 2011 2:35 pm
Location: Southern Illinois, USA

Re: Reverse Limit Size

Post by MurphyMan »

theforexedge wrote:Has anyone tried this or got it to work?

Maybe I'm doing something wrong or have the wrong combination of variables, but i've tried everything and still can't get this working...

Any help appreciated..

Jason
Are you using the script in Post #1? Nothing to it.

In the Navigator window click on the script and drag it to the chart. It will set the line whenever you release the left mouse button. A window comes up. If you don't like what it says, change it.

Next, you get a Buy or Sell box. Answer the question.

If you want to change the defaults, open the script, make the changes, save and compile.

Okay? :roll:
ill_be_back
Posts: 1
Joined: Thu Dec 22, 2011 12:20 am

Re: Script for Scaling in orders

Post by ill_be_back »

Hello

thank you for the script

works perfect

will really appreciate if u can add

1) when the mouse is dragged on to the chart the price to be displayed around the cursor
to get a more precise entry

2) can u add the Hedge function like in MTPM global
With the Same SL_TP feature, and equal to all the scale trades

Thanks Again
User avatar
MurphyMan
Trader
Posts: 345
Joined: Tue Nov 15, 2011 2:35 pm
Location: Southern Illinois, USA

Re: Script for Scaling in orders

Post by MurphyMan »

ill_be_back wrote:Hello

thank you for the script

works perfect

will really appreciate if u can add

1) when the mouse is dragged on to the chart the price to be displayed around the cursor
to get a more precise entry

2) can u add the Hedge function like in MTPM global
With the Same SL_TP feature, and equal to all the scale trades

Thanks Again
Sorry. Take a closer look at Post #1. I didn't write it.
longytravel
Trader
Posts: 27
Joined: Sun Dec 16, 2012 1:51 pm

Re: Script for Scaling in orders

Post by longytravel »

Good Morning,

I am always grateful for the help i receive in the forum and was hoping someone can help me out again! I promise I will give something back someday!

I have been using the very useful attached script (post 1) in my trading.

I would really like for a few key actions to be added to it if someone with coding skills wouldn't mind?

1. I would like the pending orders to expire after a chosen period. This could either be done via an input at time of placing or by me changing some code and saving with a different name each time. My coding is so basic i can just about amend the code at the start which changes lot sizes etc!

2. Based on the time frame i set i would like the comments field to be populated with the title of the script plus the set expiration timeframe.

3. Once the orders have expired then all objects should also be removed. In fact, i am not so bothered about the arrows etc been on from the start, can they be removed from even been placed?

I understand this is work for someone for nothing in return so if you can help me out on that basis i would be really grateful!

Shout if anyone has any questions, thanks in advance.
DocT
Trader
Posts: 149
Joined: Mon Apr 23, 2012 9:44 am
Location: Aberdeen

Re: Script for Scaling in orders

Post by DocT »

Lifesys » Wed Apr 10, 2013 5:18 pm wrote:Interesting that this rates a special thread. An earlier version of EasyScalingScript was posted on CJ thread. Originally based on tigpips but entirely rewritten.
Renamed EasyScalingScript in that, as well as manual drag StartPrice settings, you can use sangmanes brilliant EasyOrder system.
Start EasyOrder Script, select type of order, it drops StartPrice (green), TP(blue) & SL(red) lines on the chart.
Start EasyScalingScript & it recognises & uses these values. This means you can change relative TP & SL for every order simply by drag a line.
Total Vol. size for a certain SL now accurately reflects % of Account if set, and log, linear & fixed scaling can be selected.

Please don't expect this to work on penny orders (0.01 vol) or where StartPrice is too close to Ask - your data source will have a minimum distance.
There is a NoTradeDebug mode, which shows values & lines but no actual trade, so you can find out what you are doing wrong.
Lifesys

Trying to get scaling to work with EasyOrder and not having much success! Error 131 on log.
What are the settings to get Easy Scaling to use EasyOrder trade entry?
Any tips appreciated.

Cheers
Doc
lonelytrader
Trader
Posts: 79
Joined: Wed Feb 29, 2012 1:29 pm
Location: Canada

Script for Scaling in orders

Post by lonelytrader »

I wonder if anyone has ever thought of a scale in based on ATR.
I have been reading about the Turtle experiment and one thing that trully caught my attention is the scale in based on ATR.

If somebody can be so kind as to add the ATR option to the scrip, as this should work well with any trend trading strategy.

some of the inputs needed is,

//-- Orders to be opened
#define PendingOrders 3 // Amount of pending orders to be added

//-- Money management
#define RiskPercent 2 // Risk for initial trade
#define RiskDecrease 0.5 // Risk decrease for the next trade

//-- ATR and multipliers
#define ATRPeriod 20 // ATR Period to use
#define ATRStopMultiplier 2.5 // Multiplier for the initial stop-loss
#define ATROrderMultiplier 0.5 // Multiplier for further pending orders


thank you for any help
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Script for Scaling in orders

Post by milanese »

lonelytrader » Tue Apr 28, 2015 2:53 am wrote:I wonder if anyone has ever thought of a scale in based on ATR.
I have been reading about the Turtle experiment and one thing that trully caught my attention is the scale in based on ATR.

If somebody can be so kind as to add the ATR option to the scrip, as this should work well with any trend trading strategy.

some of the inputs needed is,

//-- Orders to be opened
#define PendingOrders 3 // Amount of pending orders to be added

//-- Money management
#define RiskPercent 2 // Risk for initial trade
#define RiskDecrease 0.5 // Risk decrease for the next trade

//-- ATR and multipliers
#define ATRPeriod 20 // ATR Period to use
#define ATRStopMultiplier 2.5 // Multiplier for the initial stop-loss
#define ATROrderMultiplier 0.5 // Multiplier for further pending orders


thank you for any help
look there maybe it will be interesting for you ---click---- > http://www.stevehopwoodforex.com/phpBB3 ... =21&t=3573

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
BobbyT
Trader
Posts: 232
Joined: Thu Aug 21, 2014 1:34 am
Location: Seattle

Script for Scaling in orders

Post by BobbyT »

Made some minor mods to this script.
You can now open a market order as the first position.
I also made a dirty change which allows placing orders close to TP when using SameSL_TP. For example, you can now set 5 trades, 10 pips apart with an initial TP of 50 pips on teh first order (and a TP of 10 pips on the final order). It's a minor mod but one that I felt needed to be made.
I haven't checked all the features to see if I broke anything in the process but it looks as though it should be ok.
Let me know if I fudged something up.
Cheers,
BobbyT
You do not have the required permissions to view the files attached to this post.
Procrastination provides exponentially negative returns - BobbyT
Post Reply

Return to “Scripts”