Thanks for your responce Mike. As I say in my post earlier "feel free to comment". I will take every comment in positive way. And like allso sayd before, this is first try to do some kind of program ever (no c or c++ or nothing before). So for total newbie with some sort of language issue (reading coders guru's doguments with google translater) start seems to be hard..

But I hope that I will gasp this some day. I will look your cleaning and take some notes from that.
Then some extra explanations what I try to do. I attac picture for make it more clean (hopefully).
I trade pins and engulfing bars etc. When I go short I want to go short few pips (buffer) below signal candle and when go long I want to add spread and that "buffer" to my entry price.
Reason why that buffer cannot be just example 5 pips is that signals are so different size. Some pairs I can get 4H signal what is 30 pips and then USDZAR 4H signal can easily be 1000 pips. Thats why I need to use different amount of pips of different size of signals.
Hope this makes more clear what I try to do...
You do not have the required permissions to view the files attached to this post.