Reading the EA Presets File into My Indicator

 

My system requires the Indicator to run concurrently with my EA. They share many of the same parameters, but the problem is Indis dont allow you to load from a presets file. I want to read the EA presets file into my Indicator, and parse and apply their values. Easy enough to read in from a file, but Im mostly concerned with parsing the values.

sample presets file:

DebugOn=1
AlertOn=1
MaxRisk=0.02
PipDec=1
Buy=1
Sell=0
PinTop=0
RevPin=0
BrkFrom=High
Break=-5
PCLTP1=29
PCLTP2=64
PCLTP3=82


Has anyone already written a routine to do this?

 

Why don't you set up a template. Set up the indicator with all the parameters then save it as a template and you can plonk it on a chart any time you want.

Reason: