The Most Robust Intermarket System - Copper

Discussion in 'Automated Trading' started by daanipd, Aug 11, 2023.

  1. themickey

    themickey

    You jest
     
    #11     Aug 12, 2023
  2. themickey

    themickey

    IWM_Barchart_Interactive_Chart_08_13_2023.png
    Copper (hg, cash) vs Russell 2000
    Copper is heading South.
     
    #12     Aug 12, 2023
  3. themickey

    themickey

    Another problem with your theory, what copper cash does versus what copper stocks do is a different kettle of fish.
     
    #13     Aug 12, 2023
  4. piezoe

    piezoe

    I was not jesting.
     
    #14     Aug 12, 2023
  5. themickey

    themickey

    Please tell, what did you gain in knowledge?
     
    #15     Aug 12, 2023
  6. daanipd

    daanipd

    Please stop being so toxic. This is not good for the community.
     
    #16     Aug 12, 2023
  7. Overnight

    Overnight

    It's a valid and pertinent question.
     
    #17     Aug 12, 2023
  8. ph1l

    ph1l

    From my very limited knowledge of AmiBroker Formula Language (AFL) and Spanish, I think the logic from the comment for the original code at the end is
    Code:
    if in long trade
        if close(intermarketAsset) > SimpleMovingAverage(intermarketAsset, 4)
        and close(tradingAsset) > SimpleMovingAverage(tradingAsset, 4)
            exit long at next bar open
    if in short trade
        if close(intermarketAsset) < SimpleMovingAverage(intermarketAsset, 4)
        and close(tradingAsset) < SimpleMovingAverage(tradingAsset, 4)
            exit short at next bar open
    
    if close(intermarketAsset) < SimpleMovingAverage(intermarketAsset, 4)
    and close(tradingAsset) < SimpleMovingAverage(tradingAsset, 4)
        enter long tradingAsset at next bar open
    
    if close(intermarketAsset) > SimpleMovingAverage(intermarketAsset, 4)
    and close(tradingAsset) > SimpleMovingAverage(tradingAsset, 4)
        enter short tradingAsset at next bar open
    
     
    #18     Aug 12, 2023
    Drawdown Addict likes this.
  9. themickey

    themickey

    Toxic because you are caught out talking bs?
     
    #19     Aug 12, 2023
  10. themickey

    themickey

    Any chance you can post the whole code?
    My old AB is shut down/redundant on a no longer used puter.
     
    #20     Aug 12, 2023