Long-scalping equity options against time decay and market drift

Discussion in 'Journals' started by fullautotrading, Jan 31, 2022.

Thread Status:
Not open for further replies.
  1. As promised, here is now a snippet of the code or the free Option Payoff utility that you have downloaded.

    This can be useful in case you wish to write your own "calculator". I will give you the code that I wrote to compute the value of any option (this plugin can accommodate unlimited options of any kind).

    I think you may like it because this code can compute ANY option, independent of it being a CALL or PUT, or long or short.

    That is, it unifies all cases into a unique one. The function could be made more compact obviously, but I wrote it this way for greater clarity.


    Code:
        public double Funct(double X)
        {
            if (this.PositionSignedMultiplied == 0)
                return 0;
    
            double GainLossAtX = this.PutSignInvertor * (X - this.Strike) * this.PositionSignedMultiplied;
    
            double Y = Premium;
    
            if (this.PutSignInvertor * X >= this.PutSignInvertor * Strike)
                Y += GainLossAtX;
    
            return Y;
        }
    
    
    

    where clearly:

    Code:
    this.PositionSignedMultiplied = this.PositionSigned * this.Multiplier;
    this.TransactionPrice = (double)Interaction.IIf(this.PositionSigned < 0, this.PriceBID, this.PriceASK);
    this.Premium = -this.TransactionPrice * this.PositionSignedMultiplied;
    this.PutSignInvertor = (int)Interaction.IIf(this.IsPutOption, -1, 1);
    
    
     
    Last edited: Dec 4, 2022
    #401     Dec 4, 2022
  2. it's times like these that I truly question my internal policy of diplomacy.
     
    #402     Dec 4, 2022
    fullautotrading and spy like this.
  3. spy

    spy

    With all due respect @lucysparabola, you should work on your diplomacy because the old joke is:

    “It’s how you tell someone to go to hell in a way that makes them look forward to the trip.”

    :rolleyes:
     
    #403     Dec 4, 2022
  4. ... don't whine when it hurts ... :)

     
    #404     Dec 4, 2022
  5. lol yes as you can see i struggle with both sides of it currently.
     
    #405     Dec 4, 2022
    fullautotrading and spy like this.
  6. We are just restarting the week, with new ticks coming in.

    Currently 359.4K profit and 61.84% funds usage. This weekend I have done also a few interface refinements as you can see in the green rectangle below. Essentially different icons for the layers are meant to belong to a "protective structure", instead of pure scalping/hedging activity (it may seem nothing, but when you have many accounts and layers to supervise, it helps):

    upload_2022-12-5_0-16-14.png


    Another improvement is the introduction of two new functionalities, as shown in the green rectangle below:

    upload_2022-12-5_0-18-47.png

    Transfer: ES FUT 20220617 GLOBEX 50 → ES FUT 20220916 GLOBEX 50
    Transfer: ES FUT 20220916 GLOBEX 50 → ES FUT 202212 GLOBEX 50
    Transfer: ES FUT 202212 CME 50 → ES FUT 202303 CME 50



    The first one is to get the global PnL change in reaction to a x% (x:= user choice) move of the underlying (this helps check the very short-term situation).

    The second one is to show a global picture of the current payoff scenario (which is "dynamic" obviously), which helps a lot check the long-term scenario.
     
    Last edited: Dec 4, 2022
    #406     Dec 4, 2022
  7. destriero

    destriero

    What purpose do the icons serve when your 15/1 short backspreads go tits-up? A stress of the 15/1 structure goes debit on a 15% ES drop.
     
    #407     Dec 4, 2022
    fullautotrading likes this.
  8. The Donkey has finally resumed his second account to illustrate his dissociative identity disorder and to come here and spread again his shit.

    I preferred the previous Shrek personality: at least he could make sense :)
     
    Last edited: Dec 4, 2022
    #408     Dec 4, 2022
  9. destriero

    destriero

    Debit boy!

    tell us more about your un/realized sim-profits!
     
    #409     Dec 4, 2022
    fullautotrading and spy like this.
  10. Good morning Donkey! :)

    Did you have a good sleep? Have you been shitting around, liking your own posts with your alter ego? Yes? I can see it: good!

    By any chance, have you been clicking on my journal like a madman all night while I was sleeping and printing $$$? :)

    It's possible for a walking encyclopedia of psychological disorders, but still unlikely because, frankly, tiring to the carpal tunnel :)

    There are 51,500+ (highest view/time ratio) views in this journal of people who are whatsapping me just laughing like crazy at your demented un-understandable invented-jargon tweet-style posts, you make to impress the poor noobs :)

    And, then, you even proceed to like them yourself, with phoney accounts, showing all your desperate insecurities :)

    Protagonist and deuteragonist of a fantasy movie running in your own mind.

    Why don't you tell us more about your gambling addiction and your pathetic account which will never grow, if you continue to gamble?

    Where is your show in "paper trading" with 2M? We are still waiting for it. We want to see how you buy at the bid and sell at the ask options and how you make 20%+ profit with 5%- DD. After all, it's easy: everyone is doing it.

    Nobody asks you to become a world-class programmer, but if you focus and follow attentively the concepts explained in this thread, it is not excluded that in just 10 years of "manual" trading you might arrive to be eligible to trade with my application (I won't be around though :)).

    Clearly, in the meantime, you need to have to get rid of your psychological issues. Worked hard on your narcissistic personality disorder and the dissociative identity disorder: I can't afford nutcases in my squadron, and beware they also associate with Alzheimer's and dementia.

    Work on it: you can do it! Go Donkey go!
     
    Last edited: Dec 5, 2022
    #410     Dec 5, 2022
Thread Status:
Not open for further replies.