change marketposition

Questions about MultiCharts and user contributed studies.
Posts: 76
Joined: 02 Sep 2013
Has thanked: 31 times

change marketposition

Postby shivax » 05 Feb 2018

hi, there is a instruction to code a change position?

Example : (i want to code it more easy)

var: lastPos(0);

if (marketposition<>lastPos) then begin
//do instruction



Posts: 9
Joined: 31 Mar 2017
Been thanked: 1 time

Re: change marketposition

Postby Wapi » 06 Feb 2018

Isn't enough to declare:

Var: lastpos(0);


If lastpos<>lastpos[1] then begin


User avatar
Anna MultiCharts
Posts: 170
Joined: 14 Jul 2017
Has thanked: 5 times
Been thanked: 34 times

Re: change marketposition

Postby Anna MultiCharts » 06 Feb 2018

Hello, Shivax and Wapi!

Both of the codes seem to be fine.
Shivax, we cannot recommend anything regarding an easier code as it all depends on your goals. Please describe what you need to achieve in more details.
These users thanked the author Anna MultiCharts for the post:

Return to “MultiCharts”