JSFiddle - React, Tailwind, and code Playground

by joplomacedo

JavaScript

function emaFollow(options = {
        ticker,
        action,
        accountBalance,
        availableBuyingPower,
        barSize: '3 min',
        accountRisk: 0.02,
        limitAtrMultiplier: 3,
        maxSecsToFill: 5,
        testTrigger: true,
        stopLogic

    }, callbacks = {
        onInvalidStartingOrderAttempt: () => {},
        onOrderRecordsUpdate: () => {},
        onComplete: () => {}
    } ) {
    	
      console.log(typeof callbacks.onInvalidStartingOrderAttempt);
    	
    };
    
    
    emaFollow({}, {
    	x() {}
    });