Author Topic: Setting a variable for each selection  (Read 401 times)

Tags:
  • All members
  • Posts: 35
  • Karma: +0/-0
  • Gender: Male
Setting a variable for each selection
« on: Fri, 19 March, 2021, 18:34 »
Hi,

I am struggling to assign a value to individual selections. 

If i wanted to write all the prices to file before the off - i use "back_price" (all selections) but if i want to write to file "1/back_price" for each selection - i cannot get it working.

What is simplest way or workaround if possible please, I am sure I am missing something very simple but cannot put my finger on it.

Many thanks for any input
Kristo

  • Moderator
  • Posts: 3322
  • Karma: +270/-0
*
Re: Setting a variable for each selection
« Reply #1 on: Fri, 19 March, 2021, 19:13 »
Hi
Put variables and expressions in square brackets and enclose only string variables in quotes:

write to file: text: ["sel_name"] [back_price] [1/back_price]
Please read the following disclaimer with regards to the information you may request and obtain on our forum. This specifically concerns trigger files and various instructions as to how to implement a strategy.