NexusFi: Find Your Edge


Home Menu

 





[Help] Reinvest on losing trades formula


Discussion in EasyLanguage Programming

Updated
    1. trending_up 1,610 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 1 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 micasa001 
Amsterdam
 
Experience: Master
Platform: Own
Trading: Currency
Posts: 9 since Jul 2017
Thanks Given: 4
Thanks Received: 1

Hi all,

Im running my scripts for over a while and this is working fine. But profits are sometimes to low and risks are a bit high at the moment. If I wash out all the strategies and probability calculations in the scripts the basics investment is like

enter long 100 @ 11000
buy 100 @ 10500
buy 200 @ 10000
buy 400 @ 9500
buy 800 @ 9000

So I double down on a losing trade (this is a formula help request, please dont tell me your opinion about this)

what I’m wondering is instead of these fixed levels with BIG orders, can we exponentially calculate how much to aim for in tinier steps?

e.g instead of these steps:

buy 100 @ 10500
buy 200 @ 10000

it might look like

buy 10 @ 10900
buy 15 @ 10800
buy 20 @ 10700
buy 25 @ 10600
buy 50 @ 10500

by the time we’ve reached 10500, we’ve still bought 100, just in smaller (and exponential) steps.

It would be even nicer if it could dynamically tweak how exponential this is:
buy 5 @ 10900
buy 8 @ 10800
buy 15 @ 10700
buy 25 @ 10600
buy 50 @ 10500

or even smaller steps, instead of 5 steps between 10900 and 10500 (with final goal of 100 total), 10 steps in that range with the same final goal

I can't figure out the formula to get this done. Hope someone can help me with this.


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
CFTC Opens First COT Report Review in 20 Years -- Asks W …
Traders Hideout
Roland Garros Final Day: $3M on Zverev at 80.5% -- Leban …
Prediction Markets & Event Contracts
Weekend Update: First Qatari LNG Transit Attempted -- IR …
Traders Hideout
Warsh Rate Hike at 40%, Iran June 15 Expires Tonight at …
Prediction Markets & Event Contracts
June 15 Peace Odds Surge From 3.6% to 12.25% After Trump …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
196 thanks
Sober Journey With S&P
27 thanks
30 Sessions
20 thanks
BERN ALGOS algo trading journal
8 thanks
Volume Indicators
8 thanks
  #2 (permalink)
 
SMCJB's Avatar
 SMCJB 
Houston TX
Legendary Market Wizard
 
Experience: Advanced
Platform: TT Stellar & Tradestation
Broker: Primarily Advantage Futures
Trading: Primarily Energy but also a little Equities, Fixed Income, Metals, U308 and Crypto.
Frequency: Many times daily
Duration: Never
Posts: 5,241 since Dec 2013
Thanks Given: 4,585
Thanks Received: 10,531


micasa001 View Post
I can't figure out the formula to get this done.

What are you actually trying to get 'done'? You need to define some parameters. For example you could say that I want to buy 100 at 10000, and will add to the position all the way down to 8000/80% of current price at which point I will have bought a total of 1000. With the added condition that every time I add I want the average price of my position to be equal to 50% of my initial entry and 50% of my latest entry.


Reply With Quote




Last Updated on April 18, 2020


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts