NexusFi: Find Your Edge


Home Menu

 





[Help] Reinvest on losing trades formula


Discussion in EasyLanguage Programming

Updated
    1. trending_up 1,646 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?
CME Launches Bitcoin Volatility Futures June 1 -- First …
Cryptocurrency
Beijing Summit Closes: Xi Pledges Hormuz Help -- $1.14B …
Prediction Markets & Event Contracts
US Prop Firms Race Inside the CFTC Perimeter -- Tradeify …
Funded Trading Evaluation Firms
Post-Summit Market Verdict: ES -1%, NQ -1.5%, 10-Year Yi …
Traders Hideout
Iran Forward Curve: June 30 at 56% vs June 15 at 28% -- …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
13 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 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,242 since Dec 2013
Thanks Given: 4,586
Thanks Received: 10,533


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