Break your signal down into the elements that make it go, in common english, and build out from there tiny piece by piece. Take a look at some of the studies that one platform on the market has premade and see if any of the readymades can be cobbled together into something that gets you where you want to go. Most platforms probably have comparable. If you decide to do some nuts and bolts, that platform can get granular with it too. https://search.sierrachart.com/?Query=auto+trading&submitted=true Using the Spreadsheet Study https://www.sierrachart.com/index.php?page=doc/UsingTheSpreadsheetStudy.php Advanced Custom Study Interface and Language (ACSIL) https://www.sierrachart.com/index.php?page=doc/AdvancedCustomStudyInterfaceAndLanguage.php