Jump to content
Elie

Equalized Risk Per Trade Equalized Risk Per Trade Script

Recommended Posts

Hi everyone,

in the Equalized Risk Per Trade Equalized Risk Per Trade Script, the stop loss is not dynamically calculated based on a specific technical level on the chart. Instead, it uses a fixed calculation and it triggers (StopPrice-0.05) which means it will trigger a market sell order 0.05 units (e.g., dollars) below the entry price.

what I want is basicaly is: Manually set my stop loss on the chart at a technical level and When I press the hot key, the script calculates:

    • The risk per share (StopPrice).
    • The number of shares to buy based on my predefined risk amount (which is 0.2% of my 20K account in this example).
  • Order Placement: Places a buy order at Ask+0.05.
  • Stop Loss Order: Sets a stop market order to sell if the price hits the defined stop loss on the chart.

So I modified the script to

 

StopPrice=Price-StopPrice;

Share=40/StopPrice;

DefShare=Share;

Price=Ask+0.05;

TIF=DAY+;

Buy=Send;

TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice ACT:SELL STOPPRICE:StopPrice QTY:Pos TIF:DAY+

Can anyone please let me know if the script is correct and can work?

Also How do I place my stop loss manually on the chart? at Pre market DAS doesn't allow stop loss on the chart ?

Thanks in advance

Share this post


Link to post
Share on other sites

@peterB Hi Peter, thank you

yes I noticed, I'm using the Equalized Risk Long 40 script and it works perfectly, it's just that it uses buying power and I want to use only cash(0.2R of 20K acount)

I noticed that Sometimes when the stop loss are triggered I lose more than $40, shouldn't it be only $40 loss ?

Share this post


Link to post
Share on other sites

it is 40 risk when your order gets triggered and you always can get some slippage so 40-45 is normal depending on the liquidity of the symbol you trade and its spread

Share this post


Link to post
Share on other sites

@Pete B Hey Peter,

Yes I know that's why it was alittle strange when the stop loss was triggered and it showed $74,

but thanks any way

Share this post


Link to post
Share on other sites

you can easily check if your risk and position is correct: divide your risk 40 with (avg price - stop loss price) or divide the position with the (avg price - stop loss price)

Share this post


Link to post
Share on other sites

I think that was a high bid ask spread maybe

THanks Peter, Appreciated 

Share this post


Link to post
Share on other sites

yes if your stop is 10 cents and the spread is 7 cents you are down 0.7R right when you open the position.

Share this post


Link to post
Share on other sites

That's exactly what happend

Thank you

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.