how to make external variable?
37 replies
nitroz
7 years ago #116496
hi,
i am a new user of ea wizard. would like to ask how to make an external variable of lets say aligator(to change the parimeter of jaw, teeth and lips)? and how to make an external variable when to active where price from below touch jaw or teeth or lips and we sell and vice versa. thanks in advance
tomas262
6 years ago #143811
Hello,
this to me seems more like trading logic issue. Can you confirm this happens with the EA attach in the post 28 (rsitrade1.3.sqw)?
nitroz
6 years ago #143818
yes tomas, its confirm ea attqch in the post 28 is rsitrade1.3
tomas262
6 years ago #143833
Hello,
the problem you have is that you open multiple trades with various magic numbers. Then the exit condition comes and you try to close a single trade
What you need is to close “all shorts” OR “all longs”
Here is how to do it: https://strategyquant.com/forum/topic/6605-closing-all-longshort-for-a-symbol/
Let me know if you need any help
nitroz
6 years ago #143861
thanks tomas, try to do it. 🙂
nitroz
6 years ago #233069
hi tomas,
i am creating a new ea but get lost in the middle. the logic is simple.
buy if alligator open up and place a buy stop with the high of last candle. after profit for 5 pip then activate trailing stop at breakeven. after profit 10 pip than trailling stop move to profit 6. after profit 20 pip than trailling stop move to 10 pip. after profit 40 pip than trailling stop move to 20 pip.
here i attach my file but it is correct way or not and i dont know how to active trailling stop like sample above. please help. thanks
nitroz
6 years ago #233070
here is the file
nitroz
6 years ago #233071
why cannot upload sqw file?