Pos Size 4
From the Old Kings archive: Pos Size 4, an indicator for MetaTrader 4. In the code it works with ATR. It has 12 settings, for example ATRperiod (default 14), Risk (default 1) and SLfactor (default 1.5). Attach it to a chart to see what it draws, then compare it with price on a few timeframes. Inside: 1 indicator file with source code (.mq4) you can open and edit in MetaEditor. Old Kings are classic community tools shared as-is. Not tested by PolyMaria. Try it on a demo account first. Are you the author of this tool? Message us on Telegram (@abumarket_support) and we will credit you or take it down.
Indicator · MT4 · v1.0 · Free
About Pos Size 4
Pos Size 4 is an indicator for MetaTrader 4 based on ATR. It has 12 settings, such as At rperiod, Risk and S lfactor. MQL source code included.
Files in the download: pos_size.mq4.
Settings
| Setting | Default | What it does |
|---|---|---|
| At rperiod | 14 | ATR Periods |
| Risk | 1 | Risk Size % |
| S lfactor | 1.5 | Stop Loss as a factor of ATR |
| T pfactor | 1.0 | Take Profit as a factor of ATR |
| Font size | 9 | Font size |
| Color | clrMagenta | Color |
| Base corner | CORNER_RIGHT_UPPER | Base Corner 0=UL,1=UR,2=LL,3=LR |
| Fixed atr | 0 | Fixed ATR points |
| Back | false | Background object |
| Selection | false | Highlight to move |
| Hidden | true | Hidden in the object list |
| Z order | 0 | Priority for mouse click |
How to install
- Download the ZIP from your PolyMaria library and unzip it.
- In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Indicators.
- Copy the .mq4 file(s) there. Put any .mqh files in MQL4 → Include.
- Open the .mq4 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
- Drag the indicator from the Navigator onto a chart and adjust the settings.
Tags: ATR · MT4 Indicator · MQL4 Source Code