Default text for formula

This commit is contained in:
Luis Fernando Molina committed 2019-05-29 12:15:48 +02:00
1 parent 336c3b8d5b
commit efc445c3c9
2 files changed
+8 -2

No files matched your search

+2
View File
@@ -134,6 +134,8 @@ if (testUser !== null) {
LOGGED_IN_ACCESS_TOKEN_LOCAL_STORAGE_KEY = "access_token"
}
const DEFAULT_FORMULA_TEXT = '// Write your formula here'
const USDT_BTC_HTH = 19900; // This is needed to know the scale of the market time line.
const WIDHTER_VOLUME_BAR_BASE_FACTOR = 2.5;
@@ -391,7 +391,9 @@ function newPartsFromNodes () {
function addFormula (node) {
if (node.formula === undefined) {
node.formula = {}
node.formula = {
code: DEFAULT_FORMULA_TEXT
}
createPart('Formula', '', node.formula, node, node)
}
}
@@ -417,7 +419,9 @@ function newPartsFromNodes () {
let m = phaseParent.phases.length
let phase = {
name: 'New Phase',
formula: {},
formula: {
code: DEFAULT_FORMULA_TEXT
},
nextPhaseEvent: {
situations: []
}