<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport"…
- User
/* Filter & sort controls styling with some added flex wrap */ #filterSortWrapper { max-width: 1100px; margin: 15px auto; display: flex; flex-wrap: wrap; gap: 15px; align-items: center; } #filterSortWrapper label { font-weight: bold; margin-right: 6px; white-space: nowrap; } #filterSortWrapper input, #filterSortWrapper select { padding: 4px 6px; font-size: 12px; min-width: 110px; } #filterSortWrapper > div { display: flex; align-items: center; }
/* Account selector wrapper */ #accountSelectorWrapper { max-width: 1500px; margin: 0 auto 15px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } #accountSelectorWrapper label { font-weight: bold; }
<div> <label for="day">Day (Date)<sup style="color:red">*</sup></label> <input type="date" id="day" required aria-required="true" /> </div> <div> <label for="time">Time<sup style="color:red">*</sup></label> <input type="time" id="time" required aria-required="true" /> </div> <div> <label for="symbol">Symbol<sup style="color:red">*</sup></label> <input list="symbolList" type="text" id="symbol" placeholder="e.g. EURUSD" required aria-required="true" autocomplete="off" /> <datalist id="symbolList"> <!-- Common Forex Pairs --> <option value="EURUSD"></option> <option value="USDJPY"></option> <option value="GBPUSD"></option> <option value="AUDUSD"></option> <option value="USDCAD"></option> <option value="USDCHF"></option> <option value="NZDUSD"></option> <option value="EURJPY"></option> <option value="EURGBP"></option> <!-- Indices --> <option value="USTEC.p"></option> <option value="DE30.p"></option> <option value="SPX500.p"></option> <option value="UK100.p"></option> <option value="JPN225.p"></option> </datalist> </div> <div> <label for="session">Session</label> <select id="session" aria-label="Session"> <option value="">Select</option> <option>Asia</option> <option>London</option> <option>New York</option> <option>No Session</option> </select> </div> <div> <label for="risk">Risk %</label> <input type="number" id="risk" min="0" step="0.01" placeholder="e.g. 1.5" /> </div> <div> <label for="rrr">RRR (Risk Reward)</label> <input type="number" id="rrr" min="0" step="0.01" placeholder="e.g. 2" /> </div> <div> <label for="positionSize">Position Size<sup style="color:red">*</sup></label> <input type="number" id="positionSize" min="0" step="0.01" placeholder="e.g. 0.5" required aria-required="true" /> </div> <div> <label for="mode">Mode<sup style="color:red">*</sup></label> <select id="mode" required aria-required="true"> <option value="">Select</option> <option>Buy</option> <option>Sell</option> </select> </div> <div> <label for="entry">Entry Price<sup style="color:red">*</sup></label> <input type="number" id="entry" min="0" step="any" placeholder="e.g. 1.12345" required aria-required="true" /> </div> <div> <label for="sl">Stop Loss (SL)</label> <input type="number" id="sl" min="0" step="any" placeholder="e.g. 1.1200" /> </div> <div> <label for="tp">Take Profit (TP)</label> <input type="number" id="tp" min="0" step="any" placeholder="e.g. 1.1300" /> </div> <div> <label for="exitType">Exit Type<sup style="color:red">*</sup></label> <select id="exitType" required aria-required="true"> <option value="">Select</option> <option value="SL">Stop Loss (SL)</option> <option value="TP">Take Profit (TP)</option> <option value="Manual">Manual</option> </select> </div> <div> <label for="close">Close Price</label> <input type="number" id="close" min="0" step="any" placeholder="Only if manual exit" disabled /> </div> <div> <label for="entryConfirm">Entry Confirm</label> <input type="text" id="entryConfirm" placeholder="e.g. M1 CISD+FVG, M1 MSS, M5 CISD" /> </div> <div class="full-width"> <label for="whyOpen" style="vertical-align: top;">Why Open</label> <textarea id="whyOpen" rows="2" placeholder="Explain why you opened this trade"></textarea> </div> <div class="full-width"> <label for="feelings" style="vertical-align: top;">Feelings</label> <textarea id="feelings" rows="2" placeholder="What were your emotions"></textarea> </div> <div> <label for="closeRrr">Close RRR</label> <input type="number" id="closeRrr" step="0.01" placeholder="Exit RRR" /> </div> <div> <label for="closeTime">Close Time</label> <input type="time" id="closeTime" /> </div> <div class="full-width"> <label for="whyCloseManual" style="vertical-align: top;">Why Close if Exit Manual</label> <textarea id="whyCloseManual" rows="2" placeholder="Reason for manual exit"></textarea> </div> <div> <label for="profit">Profit<sup style="color:red">*</sup></label> <input type="number" id="profit" step="0.01" placeholder="Enter profit" required aria-required="true" aria-describedby="profitDesc" /> <div id="profitDesc" style="font-weight:normal; font-size:12px; color: #555;">Enter the profit manually</div> </div> <div> <label for="accountReward">Account Reward (%)</label> <input type="number" id="accountReward" step="0.0001" placeholder="Calculated automatically" disabled /> </div> <div class="full-width"> <label for="resultAfterClose" style="vertical-align: top;"> Result After Close if Exit Manual <br /> <small style="font-weight: normal; color: #555;"> (Optional - leave empty if unsure of exit result) </small> </label> <select id="resultAfterClose" aria-label="Result After Close if Exit Manual"> <option value="">Select</option> <option value="TP">Take Profit (TP)</option> <option value="SL">Stop Loss (SL)</option> </select> </div> - Assistant
- User
why spx calculate wrong risk%?
- Assistant
- User
so , what to change?
- Assistant
To fix the incorrect Risk % calculation for
"SPX500.p"and similar symbols, change the symbol casing in your definition and ensure symbol lookup uses the exact casing. - User
i change .p with .P and same problem
- Assistant
- User
same problem
- Assistant
- User
how script know if spx need 10 not 100000
- Assistant
- User
- Assistant
Thanks for sharing your symbol input markup — this is important because the user selects symbols like
"SPX500.p"with a lowercase.p. - User
but in de30 case? result is ok
- Assistant